2020-03-25 21:27:15 +00:00
|
|
|
version: "2.3"
|
2020-02-09 14:15:46 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
synapse:
|
2021-04-11 12:52:10 +01:00
|
|
|
image: matrixdotorg/synapse:v1.31.0
|
2020-02-09 14:15:46 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- SYNAPSE_CONFIG_PATH=/etc/homeserver.yaml
|
|
|
|
- SYNAPSE_REPORT_STATS=yes
|
2020-11-22 15:08:08 +00:00
|
|
|
- UID={{ docker_user.id }}
|
|
|
|
- GID={{ docker_user.id }}
|
2020-02-09 14:15:46 +00:00
|
|
|
volumes:
|
2020-09-26 21:15:44 +01:00
|
|
|
- "{{ app_data_dir }}/synapse/homeserver.yaml:/etc/homeserver.yaml"
|
|
|
|
- "{{ app_data_dir }}/synapse:/data"
|
2020-06-24 18:35:20 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-02-09 14:15:46 +00:00
|
|
|
expose:
|
|
|
|
- 8008
|
|
|
|
labels:
|
2020-06-18 20:49:12 +01:00
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.synapse.rule=Host(`matrix.jakehoward.tech`)
|
|
|
|
- traefik.http.routers.synapse.tls.certresolver=le
|
|
|
|
- traefik.http.routers.synapse.entrypoints=web-secure,matrix
|
2020-02-09 14:15:46 +00:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=synapse
|
|
|
|
- POSTGRES_PASSWORD=synapse
|
2020-11-22 15:07:34 +00:00
|
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
2020-02-09 14:15:46 +00:00
|
|
|
volumes:
|
2020-08-22 11:42:03 +01:00
|
|
|
- /mnt/tank/dbs/postgres/synapse:/var/lib/postgresql/data
|