summary refs log tree commit diff
path: root/docker
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2022-10-05 17:37:34 +0100
committerGitHub <noreply@github.com>2022-10-05 17:37:34 +0100
commit51436c8dd531b18403d175fc47e5d863af8f4fd7 (patch)
tree0aecd07d6b6374a5e1788d05f01870a44d9d7649 /docker
parentFix handling of public rooms filter with a network tuple. (#14053) (diff)
downloadsynapse-51436c8dd531b18403d175fc47e5d863af8f4fd7.tar.xz
Complement test image: capture logs from nginx (#14063)
Have nginx send its logs to stderr/out, so that we can debug
https://github.com/matrix-org/synapse/issues/13334.
Diffstat (limited to '')
-rw-r--r--docker/Dockerfile-workers6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/Dockerfile-workers b/docker/Dockerfile-workers
index 003a1cc3bf..0c2d4f3047 100644
--- a/docker/Dockerfile-workers
+++ b/docker/Dockerfile-workers
@@ -40,7 +40,11 @@ FROM matrixdotorg/synapse:$SYNAPSE_VERSION
     COPY --from=deps_base /etc/nginx /etc/nginx
     RUN rm /etc/nginx/sites-enabled/default
     RUN mkdir /var/log/nginx /var/lib/nginx
-    RUN chown www-data /var/log/nginx /var/lib/nginx
+    RUN chown www-data /var/lib/nginx
+
+    # have nginx log to stderr/out
+    RUN ln -sf /dev/stdout /var/log/nginx/access.log
+    RUN ln -sf /dev/stderr /var/log/nginx/error.log
 
     # Copy Synapse worker, nginx and supervisord configuration template files
     COPY ./docker/conf-workers/* /conf/