2023-11-28 15:01:43 +01:00
|
|
|
services:
|
2023-12-08 12:22:33 +01:00
|
|
|
coturn:
|
|
|
|
container_name: synapse_coturn
|
|
|
|
image: coturn/coturn:alpine
|
|
|
|
restart: always
|
|
|
|
user: '1003:1003'
|
|
|
|
command:
|
|
|
|
- "--log-file=stdout"
|
|
|
|
- "-c"
|
|
|
|
- "/tmp/turnserver.conf"
|
|
|
|
environment:
|
|
|
|
- DETECT_EXTERNAL_IP=yes
|
|
|
|
- DETECT_RELAY_IP=yes
|
|
|
|
- DETECT_EXTERNAL_IPV6=yes
|
|
|
|
- DETECT_RELAY_IPV6=yes
|
|
|
|
ports:
|
|
|
|
- 3478:3478
|
|
|
|
- 3478:3478/udp
|
|
|
|
- 5349:5349
|
|
|
|
- 5349:5349/udp
|
|
|
|
- 49152-49200:49152-49200/udp
|
|
|
|
tmpfs:
|
|
|
|
- /var/lib/coturn
|
|
|
|
volumes:
|
|
|
|
- ./turnserver.conf:/etc/coturn/server.conf
|
|
|
|
- ./coturn-docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
|
|
|
|
# Content of turn-secret.conf:
|
|
|
|
# static-auth-secret=someSecret
|
|
|
|
- ../turn-secret.conf:/etc/coturn/secret.conf
|
|
|
|
- ../turn-cert.pem:/etc/coturn/cert.pem
|
|
|
|
- ../turn-pkey.pem:/etc/coturn/pkey.pem
|
|
|
|
|
2023-11-28 15:01:43 +01:00
|
|
|
postgres:
|
|
|
|
container_name: synapse_postgres
|
|
|
|
image: postgres:alpine
|
2023-11-29 10:13:49 +01:00
|
|
|
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/secret.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:
|
|
|
|
- "[::1]:8008:8008"
|
|
|
|
volumes:
|
|
|
|
- /mnt/synapsedata:/data
|
|
|
|
- ./homeserver.yaml:/data/homeserver.yaml
|
2023-12-08 12:22:33 +01:00
|
|
|
# Content of turn-secret.yaml:
|
|
|
|
# turn_shared_secret: "someSecret"
|
|
|
|
- ../turn-secret.yaml:/data/secret.yaml
|
2023-11-28 15:01:43 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
synapse:
|
|
|
|
ipam:
|
|
|
|
driver: default
|