postgress mautrix
This commit is contained in:
parent
ea0a4ad6da
commit
dd3aff016e
@ -47,6 +47,18 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./mautrix-whatsapp:/data
|
- ./mautrix-whatsapp:/data
|
||||||
|
|
||||||
|
postgres-whatsapp:
|
||||||
|
image: postgres:14
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./mautrix-whatsapp/postgress:/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'
|
||||||
|
|
||||||
|
|
||||||
# mautrix-$bridge:
|
# mautrix-$bridge:
|
||||||
# container_name: mautrix-$bridge
|
# container_name: mautrix-$bridge
|
||||||
|
@ -42,7 +42,7 @@ appservice:
|
|||||||
# https://github.com/mattn/go-sqlite3#connection-string
|
# https://github.com/mattn/go-sqlite3#connection-string
|
||||||
# Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
|
# 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
|
# To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
|
||||||
uri: postgres://user:password@host/database?sslmode=disable
|
uri: postgres-whatsapp://whatsapp:jgzqnGCq3KY28C@postgres-whatsapp/whatsapp?sslmode=disable
|
||||||
# Maximum number of connections. Mostly relevant for Postgres.
|
# Maximum number of connections. Mostly relevant for Postgres.
|
||||||
max_open_conns: 20
|
max_open_conns: 20
|
||||||
max_idle_conns: 2
|
max_idle_conns: 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user