-
Notifications
You must be signed in to change notification settings - Fork 0
/
cold-chain-docker-compose.yaml
77 lines (77 loc) · 2.1 KB
/
cold-chain-docker-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
version: '2'
services:
zookeeper:
image: strimzi/kafka:latest-kafka-2.6.0
container_name: zookeeper
hostname: zookeeper
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "2181:2181"
environment:
LOG_DIR: /tmp/logs
kafka:
image: strimzi/kafka:latest-kafka-2.6.0
container_name: kafka
hostname: kafka
command: [
"sh", "-c",
"bin/kafka-server-start.sh config/server.properties --override listeners=$${KAFKA_LISTENERS} --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override zookeeper.connect=$${KAFKA_ZOOKEEPER_CONNECT}"
]
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
simulator:
image: quay.io/ibmcase/vaccine-reefer-simulator
container_name: reefersimulator
hostname: simulator
depends_on:
- kafka
ports:
- 5000:5000
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SCHEMA_REGISTRY_URL: apicurio:8080
KAFKA_MAIN_TOPIC: telemetries
FREEZER_MGR_URL: http://localhost:8080
monitoringagent:
image: quay.io/ibmcase/reefer-monitoring-agent
container_name: monitoringagent
depends_on:
- kafka
ports:
- 8081:8080
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
QUARKUS_PROFILE: dev
SCHEMA_REGISTRY_URL: apicurio:8084
TELEMETRY_TOPIC: telemetries
ALERT_TOPIC: vaccine.reeferAlerts
POD_IP: localhost:8080
KAFKA_SSL_TRUSTSTORE_PASSWORD: "nothing"
KAFKA_SSL_KEYSTORE_PASSWORD: "nothing"
freezermgr:
image: maven
container_name: freezermgr
hostname: freezermgr
volumes:
- "./:/app"
- "~/.m2:/root/.m2"
depends_on:
- kafka
environment:
- KAFKA_BOOTSTRAP_SERVERS=kafka:9092
- QUARKUS_PROFILE=dev
ports:
- "8080:8080"
- "5005:5005"
working_dir: /app
command: "mvn quarkus:dev"