reverse: add www volume

This commit is contained in:
Wonderfall 2016-05-29 02:17:24 +02:00
parent b037609606
commit 088fff8ed8
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ RUN chmod +x /usr/local/bin/*
EXPOSE 8000 4430
VOLUME /sites-enabled /conf.d /passwds /certs /var/log/nginx
VOLUME /sites-enabled /www /conf.d /passwds /certs /var/log/nginx
LABEL description="Secure nginx built from source." \
openssl="BoringSSL (date of the container)." \

View File

@ -1,5 +1,5 @@
#!/bin/sh
touch /var/run/nginx.pid
chown -R $UID:$GID /etc/nginx /var/log/nginx /var/run/nginx.pid /sites-enabled /conf.d /certs
chown -R $UID:$GID /etc/nginx /var/log/nginx /var/run/nginx.pid /sites-enabled /conf.d /certs /www
chmod -R 700 /certs
su-exec $UID:$GID nginx