From 3e0979037cb8e545471af7351c50df687037eefa Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Wed, 30 Oct 2024 17:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=20Synapse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/synapse/1.118.0/docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/synapse/1.118.0/docker-compose.yml b/apps/synapse/1.118.0/docker-compose.yml index 66b8ba01..71347aaf 100644 --- a/apps/synapse/1.118.0/docker-compose.yml +++ b/apps/synapse/1.118.0/docker-compose.yml @@ -5,13 +5,16 @@ networks: services: synapse-init: image: matrixdotorg/synapse:v1.118.0 - container_name: synapse-init + container_name: init-${CONTAINER_NAME} entrypoint: > /bin/sh -c " if [ ! -f /data/homeserver.yaml ]; then python3 -m synapse.app.homeserver --server-name ${SYNAPSE_SERVER_NAME} --config-path /data/homeserver.yaml --generate-config fi " + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} environment: - SYNAPSE_SERVER_NAME=${DOMAIN_NAME} - SYNAPSE_REPORT_STATS=no