link log files to stdout

This commit is contained in:
Luc 2021-12-07 11:47:54 +01:00
parent 402a38ab57
commit 7e7f0521ae
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ RUN set -x && \
# Copy root
COPY config/root /
# Link nginx log files to stdout and stderr
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
# Create a healthcheck
HEALTHCHECK --interval=1m --timeout=10s CMD /app/healthcheck.py http://127.0.0.1:8080/healthcheck