2020-03-25 21:27:15 +00:00
|
|
|
version: "2.3"
|
2020-02-09 14:15:46 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
synapse:
|
2020-08-18 13:13:25 +01:00
|
|
|
image: matrixdotorg/synapse:v1.19.0
|
2020-02-09 14:15:46 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- SYNAPSE_CONFIG_PATH=/etc/homeserver.yaml
|
|
|
|
- SYNAPSE_REPORT_STATS=yes
|
|
|
|
- UID=0
|
|
|
|
- GID=0
|
|
|
|
volumes:
|
|
|
|
- ./homeserver.yaml:/etc/homeserver.yaml
|
|
|
|
- ./files:/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
|
|
|
|
volumes:
|
|
|
|
- ./postgresql:/var/lib/postgresql/data
|
2020-03-10 20:08:46 +00:00
|
|
|
- ./synapse_scripts:/opt/synapse_scripts:ro
|