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