-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-multi-instance.yml
108 lines (105 loc) · 2.7 KB
/
docker-compose-multi-instance.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
include:
- docker-compose-ode.yml
services:
conflictmonitor1:
profiles:
- all
- cm_full
- cm_base
- cm_build
build:
context: .
dockerfile: Dockerfile
args:
MAVEN_GITHUB_TOKEN: ${MAVEN_GITHUB_TOKEN:?error}
MAVEN_GITHUB_ORG: ${MAVEN_GITHUB_ORG:?error}
image: jpo-conflictmonitor:latest
restart: ${RESTART_POLICY}
ports:
- "8082:8082"
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error}
KAFKA_BOOTSTRAP_SERVERS: ${KAFKA_BOOTSTRAP_SERVERS:?error}
CONNECT_URL: ${CONNECT_URL:?error}
spring.kafka.bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:?error}
kafka.topics.numPartitions: 3
healthcheck:
test: ["CMD", "java", "-version"]
interval: 10s
timeout: 10s
retries: 20
logging:
options:
max-size: "10m"
max-file: "5"
depends_on:
kafka:
condition: service_healthy
conflictmonitor2:
profiles:
- all
- cm_full
- cm_base
- cm_build
build:
context: .
dockerfile: Dockerfile
args:
MAVEN_GITHUB_TOKEN: ${MAVEN_GITHUB_TOKEN:?error}
MAVEN_GITHUB_ORG: ${MAVEN_GITHUB_ORG:?error}
image: jpo-conflictmonitor:latest
restart: ${RESTART_POLICY}
ports:
- "8182:8082"
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error}
KAFKA_BOOTSTRAP_SERVERS: ${KAFKA_BOOTSTRAP_SERVERS:?error}
CONNECT_URL: ${CONNECT_URL:?error}
spring.kafka.bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:?error}
kafka.topics.numPartitions: 3
healthcheck:
test: ["CMD", "java", "-version"]
interval: 10s
timeout: 10s
retries: 20
logging:
options:
max-size: "10m"
max-file: "5"
depends_on:
kafka:
condition: service_healthy
conflictmonitor3:
profiles:
- all
- cm_full
- cm_base
- cm_build
build:
context: .
dockerfile: Dockerfile
args:
MAVEN_GITHUB_TOKEN: ${MAVEN_GITHUB_TOKEN:?error}
MAVEN_GITHUB_ORG: ${MAVEN_GITHUB_ORG:?error}
image: jpo-conflictmonitor:latest
restart: ${RESTART_POLICY}
ports:
- "8382:8082"
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error}
KAFKA_BOOTSTRAP_SERVERS: ${KAFKA_BOOTSTRAP_SERVERS:?error}
CONNECT_URL: ${CONNECT_URL:?error}
spring.kafka.bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:?error}
kafka.topics.numPartitions: 3
healthcheck:
test: ["CMD", "java", "-version"]
interval: 10s
timeout: 10s
retries: 20
logging:
options:
max-size: "10m"
max-file: "5"
depends_on:
kafka:
condition: service_healthy