vps/synapse/docker-compose.yaml

45 lines
1,008 B
YAML
Raw Normal View History

2023-11-28 15:01:43 +01:00
services:
postgres:
container_name: synapse-postgres
2023-11-28 15:01:43 +01:00
image: postgres:alpine
restart: always
2023-12-05 17:45:59 +01:00
user: '70:70'
2023-11-28 15:01:43 +01:00
environment:
LANG: C
POSTGRES_INITDB_ARGS: "--locale=C --encoding=UTF8"
POSTGRES_USER: synapse
POSTGRES_PASSWORD: synapse
networks:
- synapse
volumes:
- /mnt/synapsepgdata:/var/lib/postgresql/data
synapse:
container_name: synapse
image: matrixdotorg/synapse:latest
# command: generate
restart: always
2023-12-05 17:45:59 +01:00
user: '991:991'
2023-12-08 12:22:33 +01:00
command: >
run
--config-path=/data/homeserver.yaml
--config-path=/data/secrets.yaml
2023-11-28 15:01:43 +01:00
environment:
2023-12-08 12:22:33 +01:00
SYNAPSE_SERVER_NAME: viyurz.fr
SYNAPSE_REPORT_STATS: "yes"
SYNAPSE_HTTP_PORT: 8008
2023-11-28 15:01:43 +01:00
TZ: "Europe/Paris"
networks:
- synapse
ports:
- 8008:8008
2023-11-28 15:01:43 +01:00
volumes:
- /mnt/synapsedata:/data
- ./homeserver.yaml:/data/homeserver.yaml
- ./secrets.yaml:/data/secrets.yaml
2023-11-28 15:01:43 +01:00
networks:
synapse:
ipam:
driver: default