From a5e273cae6cc9f821c18f390e8b00c2587b4442d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 10 Apr 2020 11:43:32 +0100 Subject: [PATCH] Also put access log in file for external access --- Dockerfile | 2 ++ nginx.conf | 1 + 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 916a25a..5c59e1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,8 @@ RUN ./scripts/release.sh # Production run FROM nginx:stable-alpine +RUN rm /var/log/nginx/access.log + COPY nginx.conf /etc/nginx/nginx.conf COPY --from=build /app/public/ /usr/share/nginx/html diff --git a/nginx.conf b/nginx.conf index e76ddc2..f799802 100644 --- a/nginx.conf +++ b/nginx.conf @@ -15,6 +15,7 @@ http { default_type application/octet-stream; access_log /dev/stdout; + access_log /var/log/nginx/access.log; sendfile on;