matrix-homeserver-docker-co.../docker-compose.yaml

34 lines
850 B
YAML
Raw Normal View History

secrets:
postgres_password:
file: ./postgres_password.txt
2022-01-28 21:31:32 +00:00
services:
postgres:
2022-02-02 16:45:09 +00:00
image: postgres:${POSTGRESQL_IMAGE_TAG}
restart: unless-stopped
volumes:
- ${VOLUME_PATH}/var/lib/postgresql/data:/var/lib/postgresql/data:rw
2022-02-02 16:45:09 +00:00
secrets:
- postgres_password
environment:
POSTGRES_DB: synapse
POSTGRES_USER: synapse_user
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_INITDB_ARGS: --encoding=UTF8 --locale=C
2022-01-28 21:31:32 +00:00
synapse:
image: matrixdotorg/synapse:${SYNAPSE_IMAGE_TAG}
2022-01-28 21:31:32 +00:00
restart: unless-stopped
volumes:
- ${VOLUME_PATH}/data:/data:rw
2022-01-29 00:48:09 +00:00
ports:
- ${SYNAPSE_PORT}:8008
2022-01-28 21:31:32 +00:00
environment:
SYNAPSE_CONFIG_DIR: /data
SYNAPSE_CONFIG_PATH: /data/${CONFIG_FILE_NAME}
2022-01-28 21:31:32 +00:00
UID: ${UID}
GID: ${GID}
TZ: ${TZ}
depends_on:
- postgres