36 lines
816 B
YAML
36 lines
816 B
YAML
---
|
|
services:
|
|
synapse:
|
|
container_name: synapse
|
|
image: docker.io/matrixdotorg/synapse:latest
|
|
environment:
|
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
|
- UID=1000
|
|
- GID=1000
|
|
volumes:
|
|
- /opt/containers/synapse/data:/data
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- synapse
|
|
- newt
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: docker.io/postgres:15-alpine
|
|
container_name: synapse-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=synapse
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=synapse
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
|
volumes:
|
|
- /opt/containers/synapse/database:/var/lib/postgresql/data
|
|
networks:
|
|
- synapse
|
|
|
|
networks:
|
|
synapse:
|
|
newt:
|
|
external: true |