-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 876 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'
services:
postgres:
image: postgres:16
container_name: synapse-postgres
environment:
POSTGRES_DB: synapse
POSTGRES_USER: synapse_user
POSTGRES_PASSWORD: synapse_password
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U synapse_user -d synapse"]
interval: 10s
timeout: 5s
retries: 5
mariadb:
image: mariadb:11
container_name: synapse-mariadb
environment:
MYSQL_DATABASE: synapse
MYSQL_USER: synapse_user
MYSQL_PASSWORD: synapse_password
MYSQL_ROOT_PASSWORD: synapse_root_password
ports:
- "3306:3306"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u synapse_user -psynapse_password"]
interval: 10s
timeout: 5s
retries: 5