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 +