-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
119 lines (110 loc) · 2.84 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
version: "3.7"
volumes:
zeebe-0: {}
zeebe-1: {}
zeebe-2: {}
services:
zeebe-0:
image: camunda/zeebe:${ZEEBE_DEMO_VERSION}
environment:
- ZEEBE_METRICS_HTTP_SERVER="true"
- ZEEBE_NODE_ID=0
- ZEEBE_PARTITIONS_COUNT=${ZEEBE_PARTITIONS_COUNT}
- ZEEBE_CLUSTER_SIZE=3
- ZEEBE_REPLICATION_FACTOR=3
- ZEEBE_CONTACT_POINTS=zeebe-2:26502,zeebe-1:26502
- ZEEBE_EMBED_GATEWAY="false"
volumes:
- zeebe-0:/usr/local/zeebe/data
deploy:
resources:
limits:
cpus: '1'
zeebe-1:
image: camunda/zeebe:${ZEEBE_DEMO_VERSION}
environment:
- ZEEBE_METRICS_HTTP_SERVER="true"
- ZEEBE_NODE_ID=1
- ZEEBE_PARTITIONS_COUNT=${ZEEBE_PARTITIONS_COUNT}
- ZEEBE_CLUSTER_SIZE=3
- ZEEBE_REPLICATION_FACTOR=3
- ZEEBE_CONTACT_POINTS=zeebe-0:26502,zeebe-1:26502
- ZEEBE_EMBED_GATEWAY="false"
volumes:
- zeebe-1:/usr/local/zeebe/data
deploy:
resources:
limits:
cpus: '1'
zeebe-2:
image: camunda/zeebe:${ZEEBE_DEMO_VERSION}
environment:
- ZEEBE_METRICS_HTTP_SERVER="true"
- ZEEBE_NODE_ID=2
- ZEEBE_PARTITIONS_COUNT=${ZEEBE_PARTITIONS_COUNT}
- ZEEBE_CLUSTER_SIZE=3
- ZEEBE_REPLICATION_FACTOR=3
- ZEEBE_CONTACT_POINTS=zeebe-1:26502
- ZEEBE_EMBED_GATEWAY="false"
volumes:
- zeebe-2:/usr/local/zeebe/data
deploy:
resources:
limits:
cpus: '1'
gateway:
image: camunda/zeebe:${ZEEBE_DEMO_VERSION}
ports:
- "26500:26500"
environment:
- ZEEBE_STANDALONE_GATEWAY=true
- ZEEBE_GATEWAY_CONTACT_POINT=zeebe-0:26502
deploy:
resources:
limits:
cpus: '1'
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
links:
- zeebe-1
volumes:
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
deploy:
resources:
limits:
cpus: '1'
grafana:
image: grafana/grafana:latest
environment:
- GF_SECURITY_ADMIN_PASSWORD=pass
depends_on:
- prometheus
ports:
- "3000:3000"
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/conf/grafana.ini:/etc/grafana/grafana.ini
deploy:
resources:
limits:
cpus: '1'
starter:
image: openjdk:8-jre-alpine
volumes:
- ./client-app/:/opt/zeebe/
command: sh -c "java -Dapp.brokerUrl=gateway:26500 -jar /opt/zeebe/target/starter.jar"
deploy:
resources:
limits:
cpus: '1'
worker:
image: openjdk:8-jre-alpine
volumes:
- ./client-app:/opt/zeebe
command: sh -c "java -Dapp.brokerUrl=gateway:26500 -jar /opt/zeebe/target/worker.jar"
deploy:
resources:
limits:
cpus: '1'