From 562a0dceae7339dd2c424f9874b7118d859378c1 Mon Sep 17 00:00:00 2001 From: wilmarguida Date: Tue, 5 Aug 2025 08:55:32 +0200 Subject: [PATCH] feat: make nginx error/access visible on stdout Signed-off-by: wilmarguida --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d22fd415..f52868ee1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,8 +33,11 @@ RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-de COPY . ./ # delete default nginx config and link it to tandoors config -RUN rm -rf /etc/nginx/http.d -RUN ln -s /opt/recipes/http.d /etc/nginx/http.d +# create symlinks to access and error log to show them on stdout +RUN rm -rf /etc/nginx/http.d && \ + ln -s /opt/recipes/http.d /etc/nginx/http.d && \ + ln -sf /dev/stdout /var/log/nginx/access.log && \ + ln -sf /dev/stderr /var/log/nginx/error.log # commented for now https://github.com/TandoorRecipes/recipes/issues/3478 #HEALTHCHECK --interval=30s \