use the alternative port for cerbot renew certs
This commit is contained in:
@@ -3,9 +3,3 @@ FROM nginx:latest
|
|||||||
RUN mkdir -p /var/www/yalarba.ru/html
|
RUN mkdir -p /var/www/yalarba.ru/html
|
||||||
|
|
||||||
COPY spa_app/index.html /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/
|
|
||||||
|
|||||||
Executable
+5
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user