web: Send logs to docker

This commit is contained in:
Yi EungJun 2016-03-11 13:37:25 +09:00
parent 25556d41de
commit 03357a87c1

View File

@ -14,6 +14,10 @@ ADD cert/private/key-no-password.pem /cert/
RUN chmod +x /docker-entry.sh
# You can see the logs using `docker-compose logs web`.
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log
# Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]