-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (61 loc) · 1.31 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.9'
volumes:
db5:
services:
flyway:
image: flyway/flyway:latest
volumes:
- ./flyway/conf:/flyway/conf
- ./flyway/sql:/flyway/sql
command: ["migrate", "-target=${FLYWAY_TARGET}"]
env_file:
- .env
depends_on:
- db5
db5:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "16432:5432"
restart: always
volumes:
- db5:/var/lib/postgresql/data-5d
analyzer:
build:
context: .
dockerfile: ExplainAnalyze/Dockerfile
volumes:
- ./analyze_result:/docker-entrypoint-initdb.d/analyze_result
depends_on:
flyway:
condition: service_completed_successfully
env_file:
- .env
partition:
build:
context: ./partition
dockerfile: Dockerfile
env_file:
- .env
depends_on:
flyway:
condition: service_completed_successfully
backup:
build:
context: ./backup
dockerfile: Dockerfile
restart: always
env_file:
- .env
depends_on:
flyway:
condition: service_completed_successfully
volumes:
- ./backups_res:/docker-entrypoint-initdb.d/backups_res