diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 21f2067..f89f578 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -3,9 +3,3 @@ FROM nginx:latest RUN mkdir -p /var/www/yalarba.ru/html COPY spa_app/index.html /var/www/yalarba.ru/html - -# Удаляем дефолтный конфиг Nginx -RUN rm /etc/nginx/conf.d/default.conf - -# Копируем ваш Nginx-конфиг и скрипты -COPY yalarba.ru.conf /etc/nginx/conf.d/ diff --git a/scripts/renew.sh b/scripts/renew.sh new file mode 100755 index 0000000..6a44102 --- /dev/null +++ b/scripts/renew.sh @@ -0,0 +1,5 @@ +#!/bin/bash +docker compose down nginx +certbot certonly --standalone --noninteractive --agree-tos --email ${EMAIL} -d ${DOMAINS} --keep-until-expiring +docker compose up -d nginx +