-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (87 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
95 lines (87 loc) · 2.1 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
services:
api-fica:
build: fica-ms/
ports:
- "8181:8080"
environment:
DATABASE_SERVER: db-fica
FLYWAY_USER: postgres
FLYWAY_PASSWORD: postgres
FLYWAY_MS_NAME: fica
CANONICAL_DB_SERVER: db-canonical
SPRING_DATASOURCE_URL: "jdbc:postgresql://db-fica:5432/fica_db?user=postgres&password=postgres"
container_name: api-fica
restart: on-failure
depends_on:
- db-fica
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
db-fica:
image: "postgres:10.7-alpine"
ports:
- "9432:5432"
container_name: db-fica
tty: true
stdin_open: true
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=fica_db
command:
- "postgres"
- "-c"
- "wal_level=logical"
api-jibar:
build: jibar-ms/
ports:
- "8182:8080"
environment:
DATABASE_SERVER: db-jibar
FLYWAY_USER: postgres
FLYWAY_PASSWORD: postgres
FLYWAY_MS_NAME: jibar
CANONICAL_DB_SERVER: db-canonical
SPRING_DATASOURCE_URL: "jdbc:postgresql://db-jibar:5432/jibar_db?user=postgres&password=postgres"
container_name: api-jibar
restart: on-failure
depends_on:
- db-jibar
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
db-jibar:
image: "postgres:10.7-alpine"
ports:
- "8432:5432"
container_name: db-jibar
tty: true
stdin_open: true
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=jibar_db
command:
- "postgres"
- "-c"
- "wal_level=logical"
db-canonical:
image: "postgres:10.7-alpine"
ports:
- "7432:5432"
container_name: db-canonical
tty: true
stdin_open: true
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=canonical_db
command:
- "postgres"
- "-c"
- "wal_level=logical"
depends_on:
- db-fica
- db-jibar