[matrix] create a external DB matrix docker-compose for Task#11990

This commit is contained in:
kjg 2023-09-12 14:35:19 +00:00
commit 915b48691b
9 changed files with 3122 additions and 0 deletions

View file

@ -0,0 +1,3 @@
dbuser=synapse
dbpassword=NEEDTOSETPASSWORD
dbname=synapse

View file

@ -0,0 +1,15 @@
## Usage and Components
Note: as of 2023-09-12 this docker-compose is available internally.
### Versions
* Postresql: registry.ipv6.docker.com/library/postgres
### Sample usage
Setting up matrix for ...
```
docker-compose up -d
```

View file

@ -0,0 +1,14 @@
version: '3'
services:
postgres:
image: postgres:14
restart: unless-stopped
ports:
- "5432:5432/tcp"
volumes:
- ./postgresdata:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${dbname}
- POSTGRES_USER=${dbuser}
- POSTGRES_PASSWORD=${dbpassword}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C