From 3856a76a750b0b7ae528e69574c14743f3f325af Mon Sep 17 00:00:00 2001 From: Jeff Near Date: Sun, 5 Apr 2026 19:47:07 +0000 Subject: [PATCH] Switching matrix to actually use the postgres database Upgraded to postgres 14 --- synapse/compose.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/synapse/compose.yml b/synapse/compose.yml index ad45049..48f9ebf 100644 --- a/synapse/compose.yml +++ b/synapse/compose.yml @@ -1,15 +1,14 @@ # This compose file is compatible with Compose itself, it might need some # adjustments to run properly with stack. -version: '3' - services: synapse: - build: - context: ../.. - dockerfile: docker/Dockerfile + #build: + #context: ../.. + #dockerfile: docker/Dockerfile image: docker.io/matrixdotorg/synapse:latest + container_name: synapse # Since synapse does not retry to connect to the database, restart upon # failure restart: unless-stopped @@ -25,7 +24,7 @@ services: # - /path/to/ssd:/data/uploads # - /path/to/large_hdd:/data/media depends_on: - - db + - synapse_db networks: - proxy @@ -53,8 +52,9 @@ services: - traefik.http.routers.https-synapse.tls.certresolver=myresolver - traefik.http.services.synapse.loadbalancer.server.port=8008 - db: - image: docker.io/postgres:12-alpine + synapse_db: + image: docker.io/postgres:14-alpine + container_name: synapse_db # Change that password, of course! environment: - POSTGRES_USER=postgres @@ -72,6 +72,7 @@ services: nginx: image: nginx:1.12-alpine + container_name: synapse_nginx restart: unless-stopped networks: - proxy