30 lines
735 B
YAML
30 lines
735 B
YAML
version: '3'
|
|
|
|
services:
|
|
|
|
nginx:
|
|
image: "nginx:1.22.0"
|
|
restart: "always"
|
|
volumes:
|
|
- /opt/02_messaging/nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
|
|
synapse:
|
|
image: docker.io/matrixdotorg/synapse:v1.63.0
|
|
restart: unless-stopped
|
|
environment:
|
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
|
volumes:
|
|
- /opt/02_messaging/synapse:/data
|
|
depends_on:
|
|
- synapse_db
|
|
|
|
synapse_db:
|
|
image: docker.io/postgres:14-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=synapse
|
|
- POSTGRES_PASSWORD=aComplexPassphraseNobodyCanGuess
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
|
volumes:
|
|
- /opt/02_messaging/postgres:/var/lib/postgresql/data |