From 07c8d949570b7c7826e5a171c44e32fdafda98a4 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 30 Nov 2022 21:26:40 +0100 Subject: [PATCH] Add matrix conf --- matrix/docker-compose.yaml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 matrix/docker-compose.yaml diff --git a/matrix/docker-compose.yaml b/matrix/docker-compose.yaml new file mode 100644 index 0000000..3d24994 --- /dev/null +++ b/matrix/docker-compose.yaml @@ -0,0 +1,44 @@ +version: '3' + +services: + postgres: + image: postgres:latest + restart: unless-stopped + networks: + - internal + volumes: + - db:/var/lib/postgresql/data + environment: + - POSTGRES_DB=synapse + - POSTGRES_USER=synapse + - POSTGRES_PASSWORD=WRyu2kuArNjRxojstqpg7EfcoUP9zoka + - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C + + synapse: + image: matrixdotorg/synapse:latest + restart: unless-stopped + networks: + - internal + - proxy + volumes: + - matrix:/data + labels: + - "traefik.enable=true" + - "traefik.http.routers.matrix-secure.entrypoints=https" + - "traefik.http.routers.matrix-secure.rule=Host(`matrix.mrdev023.fr`)" + - "traefik.http.routers.matrix-secure.tls=true" + - "traefik.http.routers.matrix-secure.tls.certresolver=sslResolver" + - "traefik.port=8008" + - "traefik.docker.network=proxy" + + +volumes: + db: + web: + matrix: + +networks: + internal: + proxy: + external: true +