发布应用 Synapse
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
3298f9744a
commit
9b3d7a047d
|
|
@ -6,12 +6,9 @@ services:
|
||||||
synapse-init:
|
synapse-init:
|
||||||
image: matrixdotorg/synapse:v1.118.0
|
image: matrixdotorg/synapse:v1.118.0
|
||||||
container_name: init-${CONTAINER_NAME}
|
container_name: init-${CONTAINER_NAME}
|
||||||
entrypoint: >
|
entrypoint:
|
||||||
/bin/sh -c "
|
- /start.py
|
||||||
if [ ! -f /data/homeserver.yaml ]; then
|
- generate
|
||||||
python3 -m synapse.app.homeserver --server-name ${SYNAPSE_SERVER_NAME} --config-path /data/homeserver.yaml --generate-config
|
|
||||||
fi
|
|
||||||
"
|
|
||||||
env_file:
|
env_file:
|
||||||
- /etc/1panel/envs/global.env
|
- /etc/1panel/envs/global.env
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue