-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 974 Bytes
/
docker-compose.yml
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:15"
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: postgres
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db-data:/var/lib/postgresql/data
- ./postgres/:/docker-entrypoint-initdb.d/
migration-application:
build: .
image: romanowalex/migration-application:v6.0
container_name: migration-application
environment:
SPRING_PROFILES_ACTIVE: docker
healthcheck:
test: [ "CMD", "curl", "--silent", "--fail", "http://localhost:8080/manage/health" ]
interval: 10s
timeout: 10s
retries: 10
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
volumes:
db-data:
networks:
default:
name: database-migration