-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (33 loc) · 861 Bytes
/
Copy pathcompose.yaml
File metadata and controls
35 lines (33 loc) · 861 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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: followthrough
POSTGRES_USER: followthrough
POSTGRES_PASSWORD: followthrough
ports:
- "5433:5432"
volumes:
- followthrough_postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U followthrough -d followthrough"]
interval: 3s
timeout: 3s
retries: 20
postgres-test:
image: postgres:17-alpine
environment:
POSTGRES_DB: followthrough_test
POSTGRES_USER: followthrough
POSTGRES_PASSWORD: followthrough
ports:
- "5434:5432"
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U followthrough -d followthrough_test"]
interval: 3s
timeout: 3s
retries: 20
volumes:
followthrough_postgres: