From 7ecf320544b21f8c1db89afa512136965b62744d Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Mon, 14 Feb 2022 15:37:35 +0100 Subject: [PATCH] [synapse] Move webproxy environment variables to app --- synapse/docker-compose.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/synapse/docker-compose.yaml b/synapse/docker-compose.yaml index d1aa0d8..ba85cee 100644 --- a/synapse/docker-compose.yaml +++ b/synapse/docker-compose.yaml @@ -6,6 +6,10 @@ services: restart: unless-stopped volumes: - /media/matrix/matrix_data:/data + environment: + - VIRTUAL_HOST=matrix.jfreudenberger.de # the domain where the service should be reached + - VIRTUAL_PORT=80 # the port the service listens in the container + - LETSENCRYPT_HOST=matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl networks: - server @@ -17,9 +21,6 @@ services: - POSTGRES_USER=synapse - POSTGRES_DB=synapse - POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C' - - VIRTUAL_HOST=matrix.jfreudenberger.de # the domain where the service should be reached - - VIRTUAL_PORT=80 # the port the service listens in the container - - LETSENCRYPT_HOST=matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl volumes: - postgres_data:/var/lib/postgresql/data networks: