-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
31 lines (31 loc) · 976 Bytes
/
docker-compose.yaml
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
version: '3.3'
services:
my-app:
image: postgres:13.7-alpine3.16
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: my-app
flyway-my-app-schema-migrate:
image: flyway/flyway:9.1
command: -url=jdbc:postgresql://my-app:5432/my-app -user=postgres -password=postgres -connectRetries=60 migrate
volumes:
- ./migrations:/flyway/sql:Z
depends_on:
- my-app
flyway-my-app-schema-status:
image: flyway/flyway:9.1
command: -url=jdbc:postgresql://my-app:5432/my-app -user=postgres -password=postgres -connectRetries=60 info
volumes:
- ./migrations:/flyway/sql:Z
depends_on:
- my-app
flyway-my-app-schema-validator:
image: flyway/flyway:9.1
command: -url=jdbc:postgresql://my-app:5432/my-app -user=postgres -password=postgres -connectRetries=60 validate
volumes:
- ./migrations:/flyway/sql:Z
depends_on:
- my-app