2023-11-28 15:01:43 +01:00
|
|
|
services:
|
|
|
|
postgres:
|
2024-02-12 11:40:26 +01:00
|
|
|
container_name: synapse-postgres
|
2023-11-28 15:01:43 +01:00
|
|
|
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
|
2024-01-08 16:56:56 +01:00
|
|
|
--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:
|
2024-02-15 11:24:39 +01:00
|
|
|
- 8008:8008
|
2023-11-28 15:01:43 +01:00
|
|
|
volumes:
|
|
|
|
- /mnt/synapsedata:/data
|
|
|
|
- ./homeserver.yaml:/data/homeserver.yaml
|
2024-01-08 16:56:56 +01:00
|
|
|
- ./secrets.yaml:/data/secrets.yaml
|
2023-11-28 15:01:43 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
synapse:
|
|
|
|
ipam:
|
|
|
|
driver: default
|