-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 967 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 967 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
36
37
38
services:
postgres:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_DB: web_app_demo
POSTGRES_USER: superuser
POSTGRES_PASSWORD: superpassword
ports:
- "${POSTGRES_PORT:-54329}:5432"
volumes:
- postgres_18_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U superuser -d web_app_demo"]
interval: 5s
timeout: 5s
retries: 10
postgres_test:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_DB: web_app_demo_test
POSTGRES_USER: superuser
POSTGRES_PASSWORD: superpassword
ports:
- "${POSTGRES_TEST_PORT:-54330}:5432"
volumes:
- postgres_18_test_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U superuser -d web_app_demo_test"]
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres_18_data:
postgres_18_test_data: