Added volume for letsencrypt certs

This commit is contained in:
GERBrowny 2022-08-16 17:54:50 +02:00
parent 1f87d1d027
commit 07f8ac4d02
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ RUN chmod +x /startup.sh
VOLUME /opt/scripts/vol/ VOLUME /opt/scripts/vol/
VOLUME /var/www/html/ VOLUME /var/www/html/
VOLUME /var/lib/dehydrated/
EXPOSE 1935 EXPOSE 1935
EXPOSE 80 EXPOSE 80

View File

@ -29,6 +29,7 @@ mv /etc/nginx/nginx_tmp.conf /etc/nginx/nginx.conf
/usr/bin/dehydrated --register --accept-terms /usr/bin/dehydrated --register --accept-terms
/usr/bin/dehydrated -c /usr/bin/dehydrated -c
killall nginx killall nginx
mv /etc/nginx/nginx.conf /etc/nginx/nginx_tmp.conf
mv /etc/nginx/nginx.conf.full /etc/nginx/nginx.conf mv /etc/nginx/nginx.conf.full /etc/nginx/nginx.conf
if [ -z ${LETSENCRYPT_DOMAIN} ]; then if [ -z ${LETSENCRYPT_DOMAIN} ]; then