mirror of
https://github.com/Thumbscrew/matrix-homeserver-docker-compose.git
synced 2024-11-09 23:53:53 +00:00
34 lines
850 B
YAML
34 lines
850 B
YAML
secrets:
|
|
postgres_password:
|
|
file: ./postgres_password.txt
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:${POSTGRESQL_IMAGE_TAG}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${VOLUME_PATH}/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
|
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
|
|
|
|
synapse:
|
|
image: matrixdotorg/synapse:${SYNAPSE_IMAGE_TAG}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${VOLUME_PATH}/data:/data:rw
|
|
ports:
|
|
- ${SYNAPSE_PORT}:8008
|
|
environment:
|
|
SYNAPSE_CONFIG_DIR: /data
|
|
SYNAPSE_CONFIG_PATH: /data/${CONFIG_FILE_NAME}
|
|
UID: ${UID}
|
|
GID: ${GID}
|
|
TZ: ${TZ}
|
|
depends_on:
|
|
- postgres
|