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

56 lines
1.4 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:
image: matrixdotorg/synapse:v1.68.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 }}
2022-11-06 21:55:05 +00:00
- HTTP_PROXY={{ pve_hosts.qbittorrent.ip }}:3128
- HTTPS_PROXY={{ pve_hosts.qbittorrent.ip }}:3128
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
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.synapse.rule=Host(`matrix.jakehoward.tech`)
networks:
- default
- traefik
2020-02-09 14:15:46 +00:00
db:
2021-12-22 15:24:37 +00:00
image: postgres:14-alpine
2020-02-09 14:15:46 +00:00
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:
2022-11-21 16:02:19 +00:00
image: redis:7-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(`synapse-admin.jakehoward.tech`)
networks:
- default
- traefik
networks:
traefik:
external: true