Added volume for letsencrypt certs
This commit is contained in:
parent
1f87d1d027
commit
07f8ac4d02
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue