web: Send logs to docker

This commit is contained in:
Yi EungJun committed 2016-06-01 21:03:46 +09:00
1 parent 25556d41de
commit 03357a87c1
1 file changed
+4
+4
View File
@@ -14,6 +14,10 @@ ADD cert/private/key-no-password.pem /cert/
RUN chmod +x /docker-entry.sh 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. # Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"] VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]