From 03357a87c1d630018cf82faffb98dc33f40662d1 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Fri, 11 Mar 2016 13:37:25 +0900 Subject: [PATCH] web: Send logs to docker --- web/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/Dockerfile b/web/Dockerfile index a8bdb91..ef03185 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -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"]