From 1ca1cb3b99ea8e12ac8808eb5dc182a055f4c8e5 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 9 Feb 2024 10:59:51 +0100 Subject: [PATCH] nur eine Datenbank --- docker-compose.yaml | 20 ++++++++++---------- mautrix-whatsapp/config.yaml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e817ac9..67c91e4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -48,15 +48,15 @@ services: volumes: - ./synapse/mautrix-whatsapp:/data - postgres-whatsapp: - image: postgres:14 - restart: unless-stopped - volumes: - - ./synapse/mautrix-whatsapp/postgres:/var/lib/postgresql/data - environment: - - POSTGRES_DB=whatsapp - - POSTGRES_USER=whatsapp - - POSTGRES_PASSWORD=jgzqnGCq3KY28C - - POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C' + #postgres-whatsapp: + # image: postgres:14 + # restart: unless-stopped + # volumes: + # - ./synapse/mautrix-whatsapp/postgres:/var/lib/postgresql/data + # environment: + # - POSTGRES_DB=whatsapp + # - POSTGRES_USER=whatsapp + # - POSTGRES_PASSWORD=jgzqnGCq3KY28C + # - POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C' diff --git a/mautrix-whatsapp/config.yaml b/mautrix-whatsapp/config.yaml index da450d8..2f8e02e 100644 --- a/mautrix-whatsapp/config.yaml +++ b/mautrix-whatsapp/config.yaml @@ -42,7 +42,7 @@ appservice: # https://github.com/mattn/go-sqlite3#connection-string # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql - uri: postgres://whatsapp:jgzqnGCq3KY28C@postgres-whatsapp/whatsapp?sslmode=disable + uri: postgres://synapse:jgzqnGCq3KY28C@postgres/whatsapp?sslmode=disable # Maximum number of connections. Mostly relevant for Postgres. max_open_conns: 20 max_idle_conns: 2