compose/synapse/compose.yaml
2023-04-12 00:26:03 +00:00

25 lines
657 B
YAML

version: "3"
services:
postgres:
image: postgres
restart: always
volumes:
- $HOME/compose/synapse/data/postgresql:/var/lib/postgresql/data
environment:
- POSTGRES_USER=synapse
# - POSTGRES_PASSWORD=SAME_AS_IN_homeserver.yaml
- POSTGRES_INITDB_ARGS=--lc-collate=C --lc-ctype=C --encoding=UTF-8 --locale=en_US.UTF-8
env_file:
- postgres.env
synapse:
image: docker.io/matrixdotorg/synapse:latest
# 8448 is for federation and should be exposed on host (reverse proxy)
# 3478 is for TURN (voip calls)
ports:
- 127.0.0.1:8008:8008
volumes:
- $HOME/compose/synapse/data:/data