-
Notifications
You must be signed in to change notification settings - Fork 105
/
docker-compose.yml
228 lines (213 loc) · 6.43 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
version: "3"
networks:
zeebe_network:
driver: bridge
services:
zeebe:
container_name: zeebe-broker-hazelcast
image: ghcr.io/camunda-community-hub/zeebe-with-hazelcast-exporter:8.2.0
environment:
- ZEEBE_LOG_LEVEL=debug
- ZEEBE_HAZELCAST_CLUSTER_NAME=dev
ports:
- "26500:26500"
- "9600:9600"
- "5701:5701"
networks:
- zeebe_network
volumes:
- ./hazelcast/application.yaml:/usr/local/zeebe/config/application.yaml
profiles:
- hazelcast
zeebe-kafka:
container_name: zeebe-broker-kafka
image: camunda/zeebe:8.3.4
hostname: zeebe
environment:
ZEEBE_BROKER_CLUSTER_PARTITIONSCOUNT: 5
SPRING_CONFIG_ADDITIONAL_LOCATION: /usr/local/zeebe/config/exporter.yml
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
KAFKA_TOPIC: zeebe
depends_on:
- kafka
ports:
- "26500:26500"
networks:
- zeebe_network
volumes:
- ./kafka/exporter.yml:/usr/local/zeebe/config/exporter.yml
- ./kafka/exporter/zeebe-kafka-exporter-3.1.1-jar-with-dependencies.jar:/usr/local/zeebe/lib/zeebe-kafka-exporter.jar
profiles:
- kafka
zeebe-redis:
container_name: zeebe-broker-redis
image: ghcr.io/camunda-community-hub/zeebe-with-redis-exporter:8.4.2
hostname: zeebe
environment:
- ZEEBE_REDIS_REMOTE_ADDRESS=redis://redis:6379
- ZEEBE_REDIS_MAX_TIME_TO_LIVE_IN_SECONDS=900
- ZEEBE_REDIS_DELETE_AFTER_ACKNOWLEDGE=true
ports:
- "26500:26500"
- "9600:9600"
networks:
- zeebe_network
volumes:
- ./redis/application.yaml:/usr/local/zeebe/config/application.yaml
profiles:
- redis
zookeeper:
image: docker.io/bitnami/zookeeper:3.8
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- zeebe_network
profiles:
- kafka
kafka:
image: docker.io/bitnami/kafka:3.4
ports:
- "9093:9093"
environment:
- KAFKA_ENABLE_KRAFT=no
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
networks:
- zeebe_network
profiles:
- kafka
redis:
container_name: redis_cache
image: redis:7-alpine
ports:
- "6379:6379"
networks:
- zeebe_network
profiles:
- redis
simple-monitor-in-memory:
container_name: zeebe-simple-monitor-in-memory
image: ghcr.io/camunda-community-hub/zeebe-simple-monitor:2.5.2
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe.client.worker.hazelcast.connection=zeebe:5701
- zeebe.client.worker.hazelcast.clusterName=dev
ports:
- "8082:8082"
depends_on:
- zeebe
networks:
- zeebe_network
profiles:
- hazelcast_in_memory
simple-monitor-in-memory-kafka:
container_name: zeebe-simple-monitor-in-memory-kafka
image: ghcr.io/camunda-community-hub/zeebe-simple-monitor:2.5.2
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe-importer=kafka
- spring.kafka.bootstrap-servers=kafka:9092
- spring.kafka.template.default-topic=zeebe
ports:
- "8082:8082"
depends_on:
- zeebe-kafka
networks:
- zeebe_network
profiles:
- kafka_in_memory
simple-monitor-in-memory-redis:
container_name: zeebe-simple-monitor-in-memory-redis
image: ghcr.io/camunda-community-hub/zeebe-simple-monitor:2.7.1
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe-importer=redis
- zeebe.client.worker.redis.connection=redis://redis:6379
ports:
- "8082:8082"
depends_on:
- zeebe-redis
networks:
- zeebe_network
profiles:
- redis_in_memory
simple-monitor-postgres:
container_name: zeebe-simple-monitor-postgres
image: ghcr.io/camunda-community-hub/zeebe-simple-monitor:2.5.2
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe.client.worker.hazelcast.connection=zeebe:5701
- zeebe.client.worker.hazelcast.clusterName=dev
- spring.datasource.url=jdbc:postgresql://postgres-zeebe-simple-monitor:5432/postgres
- spring.datasource.username=postgres
- spring.datasource.password=zeebe
- spring.datasource.driverClassName=org.postgresql.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
ports:
- "8082:8082"
depends_on:
- zeebe
- postgres-zeebe-simple-monitor
networks:
- zeebe_network
profiles:
- hazelcast_postgres
postgres-zeebe-simple-monitor:
image: postgres:16.1
restart: always
environment:
POSTGRES_PASSWORD: zeebe
volumes:
- postgres-zeebe-simple-monitor-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- zeebe_network
profiles:
- postgres
simple-monitor-mysql:
container_name: zeebe-simple-monitor-mysql
image: ghcr.io/camunda-community-hub/zeebe-simple-monitor:2.5.2
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe.client.worker.hazelcast.connection=zeebe:5701
- zeebe.client.worker.hazelcast.clusterName=dev
- spring.datasource.url=jdbc:mysql://mysql-zeebe-simple-monitor:3306/simple_monitor?createDatabaseIfNotExist=true
- spring.datasource.username=root
- spring.datasource.password=zeebe
- spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
- spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
ports:
- "8082:8082"
depends_on:
- zeebe
- mysql-zeebe-simple-monitor
networks:
- zeebe_network
profiles:
- hazelcast_mysql
mysql-zeebe-simple-monitor:
image: mysql:8
restart: always
environment:
MYSQL_ROOT_PASSWORD: zeebe
volumes:
- mysql-zeebe-simple-monitor-data:/var/lib/mysql
networks:
- zeebe_network
profiles:
- mysql
volumes:
postgres-zeebe-simple-monitor-data:
driver: local
mysql-zeebe-simple-monitor-data:
driver: local