infrastructure/ansible/roles/pve_docker/files/synapse/docker-compose.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

2020-03-25 21:27:15 +00:00
version: "2.3"
2020-02-09 14:15:46 +00:00
services:
synapse:
2021-08-06 18:20:48 +01:00
image: matrixdotorg/synapse:v1.39.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
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
redis:
image: redis:6-alpine
restart: unless-stopped
volumes:
- /mnt/tank/dbs/redis/synapse:/data
admin:
image: awesometechnologies/synapse-admin:latest
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.synapse-admin.rule=Host(`matrix.jakehoward.tech`) && PathPrefix(`/admin`)
- traefik.http.routers.synapse-admin.tls.certresolver=le
- traefik.http.middlewares.synapse-admin-path.stripprefix.prefixes=/admin
- traefik.http.routers.synapse-admin.middlewares=synapse-admin-path@docker