vps/synapse/docker-compose.yaml
2023-12-08 16:45:50 +01:00

46 lines
1.1 KiB
YAML

services:
postgres:
container_name: synapse_postgres
image: postgres:alpine
restart: always
user: '70:70'
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
user: '991:991'
command: >
run
--config-path=/data/homeserver.yaml
--config-path=/data/secret.yaml
environment:
SYNAPSE_SERVER_NAME: viyurz.fr
SYNAPSE_REPORT_STATS: "yes"
SYNAPSE_HTTP_PORT: 8008
TZ: "Europe/Paris"
networks:
- synapse
ports:
- "[::1]:8008:8008"
volumes:
- /mnt/synapsedata:/data
- ./homeserver.yaml:/data/homeserver.yaml
# Content of turn-secret.yaml:
# turn_shared_secret: "someSecret"
- ../turn-secret.yaml:/data/secret.yaml
networks:
synapse:
ipam:
driver: default