-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 834 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 834 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:16-alpine
container_name: gx-freshness-postgres
environment:
POSTGRES_DB: gx_freshness
POSTGRES_USER: gx_user
POSTGRES_PASSWORD: gx_password
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gx_user -d gx_freshness"]
interval: 5s
timeout: 5s
retries: 12
volumes:
- postgres_data:/var/lib/postgresql/data
flyway:
image: flyway/flyway:10-alpine
container_name: gx-freshness-flyway
depends_on:
postgres:
condition: service_healthy
command:
- -url=jdbc:postgresql://postgres:5432/gx_freshness
- -user=gx_user
- -password=gx_password
- -connectRetries=60
- migrate
volumes:
- ./flyway/sql:/flyway/sql:ro
volumes:
postgres_data: