From 07f8ac4d02eccab997d06744587b33cf0afc1542 Mon Sep 17 00:00:00 2001 From: GERBrowny Date: Tue, 16 Aug 2022 17:54:50 +0200 Subject: [PATCH] Added volume for letsencrypt certs --- build/Dockerfile | 1 + build/startup.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/build/Dockerfile b/build/Dockerfile index 16ac6f4..2f53213 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -49,6 +49,7 @@ RUN chmod +x /startup.sh VOLUME /opt/scripts/vol/ VOLUME /var/www/html/ +VOLUME /var/lib/dehydrated/ EXPOSE 1935 EXPOSE 80 diff --git a/build/startup.sh b/build/startup.sh index 1959318..764a319 100644 --- a/build/startup.sh +++ b/build/startup.sh @@ -29,6 +29,7 @@ mv /etc/nginx/nginx_tmp.conf /etc/nginx/nginx.conf /usr/bin/dehydrated --register --accept-terms /usr/bin/dehydrated -c killall nginx +mv /etc/nginx/nginx.conf /etc/nginx/nginx_tmp.conf mv /etc/nginx/nginx.conf.full /etc/nginx/nginx.conf if [ -z ${LETSENCRYPT_DOMAIN} ]; then