-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose.yaml
102 lines (92 loc) · 2.05 KB
/
compose.yaml
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
services:
hz1:
image: hazelcast/hazelcast:5.4
environment:
JAVA_OPTS: -Dhazelcast.config=/project/hazelcast.yaml
volumes:
- ".:/project"
networks:
- hznet
ports:
- "5701:5701"
hz2:
image: hazelcast/hazelcast:5.4
environment:
JAVA_OPTS: -Dhazelcast.config=/project/hazelcast.yaml
volumes:
- ".:/project"
networks:
- hznet
mc:
image: hazelcast/management-center:5.4
environment:
MC_DEFAULT_CLUSTER: dev
MC_DEFAULT_CLUSTER_MEMBERS: hz1
ports:
- "8080:8080"
networks:
- hznet
refdata_loader:
image: openjdk:21
command: java -jar /project/refdata-loader/target/refdata-loader-1.0-SNAPSHOT.jar
environment:
HZ_SERVERS: hz1
HZ_CLUSTER_NAME: dev
MACHINE_COUNT: 10
SIMULATOR_CONFIG_FILE: /project/config/machine_profiles_small.csv
volumes:
- ".:/project"
networks:
- hznet
event_generator:
image: openjdk:21
command: java -jar /project/event-generator/target/event-generator-1.0-SNAPSHOT.jar
environment:
HZ_SERVERS: hz1
HZ_CLUSTER_NAME: dev
MACHINE_COUNT: 10
KAFKA_BOOTSTRAP_SERVERS: "redpanda:9092"
EVENTS_KAFKA_TOPIC: "machine_events"
CONTROLS_KAFKA_TOPIC: "machine_controls"
volumes:
- ".:/project"
networks:
- hznet
ui:
build:
context: ./ui
environment:
HZ_SERVERS: hz1
HZ_CLUSTER_NAME: dev
ports:
- "8050:8050"
networks:
- hznet
redpanda:
image: redpandadata/redpanda:v23.2.12
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- --kafka-addr
- PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:9092
networks:
- hznet
kafka-ui:
image: provectuslabs/kafka-ui
environment:
KAFKA_CLUSTERS_0_BOOTSTRAP_SERVERS: "redpanda:9092"
ports:
- 8000:8080
networks:
- hznet
networks:
hznet: