mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-28 16:26:19 +08:00
发布应用 Synapse
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
4af374a18b
commit
3e0979037c
@ -5,13 +5,16 @@ networks:
|
|||||||
services:
|
services:
|
||||||
synapse-init:
|
synapse-init:
|
||||||
image: matrixdotorg/synapse:v1.118.0
|
image: matrixdotorg/synapse:v1.118.0
|
||||||
container_name: synapse-init
|
container_name: init-${CONTAINER_NAME}
|
||||||
entrypoint: >
|
entrypoint: >
|
||||||
/bin/sh -c "
|
/bin/sh -c "
|
||||||
if [ ! -f /data/homeserver.yaml ]; then
|
if [ ! -f /data/homeserver.yaml ]; then
|
||||||
python3 -m synapse.app.homeserver --server-name ${SYNAPSE_SERVER_NAME} --config-path /data/homeserver.yaml --generate-config
|
python3 -m synapse.app.homeserver --server-name ${SYNAPSE_SERVER_NAME} --config-path /data/homeserver.yaml --generate-config
|
||||||
fi
|
fi
|
||||||
"
|
"
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
environment:
|
environment:
|
||||||
- SYNAPSE_SERVER_NAME=${DOMAIN_NAME}
|
- SYNAPSE_SERVER_NAME=${DOMAIN_NAME}
|
||||||
- SYNAPSE_REPORT_STATS=no
|
- SYNAPSE_REPORT_STATS=no
|
||||||
|
Loading…
Reference in New Issue
Block a user