-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.06 KB
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
36
37
38
39
40
41
42
services:
postgres:
image: postgres:18-alpine
container_name: postgres-db
restart: unless-stopped
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: mydb
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myuser -d mydb || exit 1"]
interval: 10s
timeout: 5s
retries: 5
etherpad_go:
image: ghcr.io/ether/etherpad-go:develop
container_name: etherpad_go
restart: unless-stopped
environment:
- ETHERPAD_DBTYPE=postgres
- ETHERPAD_DBSETTINGS_HOST=postgres
- ETHERPAD_DBSETTINGS_PORT=5432
- ETHERPAD_DBSETTINGS_DATABASE=mydb
- ETHERPAD_DBSETTINGS_USER=myuser
- ETHERPAD_DBSETTINGS_PASSWORD=mypassword
ports:
- "9001:9001"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9001/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres-data: