-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (89 loc) · 2.4 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
version: '3.8'
services:
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:latest
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
healthcheck:
test: ["CMD", "kafka-topics.sh", "--zookeeper", "zookeeper:2181", "--list"]
interval: 10s
timeout: 10s
retries: 6
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
inbound-telemetry-service:
build: ./InboundTelemetryService
ports:
- "80:80"
depends_on:
kafka:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
OUTPUT_KAFKA_TOPIC: inbound-telemetry
telemetry-writing-service:
build: ./DataWritingService
depends_on:
- kafka
- mongo
environment:
SERVICE_IDENTIFIER: telemetry-writing-service
KAFKA_BROKER: kafka:9092
INPUT_KAFKA_TOPIC: inbound-telemetry
OUTPUT_MONGO_URI: mongodb://mongo:27017
OUTPUT_MONGO_DB: gos_mongo
OUTPUT_MONGO_COLLECTION: inbound_telemetry
restart: always
telemetry-ingest-service:
build: ./TelemetryIngestService
depends_on:
kafka:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
INPUT_KAFKA_TOPIC: inbound-telemetry
OUTPUT_KAFKA_TOPIC: branch-energy
branch-energy-writing-service:
build: ./DataWritingService
depends_on:
- kafka
- mongo
environment:
SERVICE_IDENTIFIER: branch-energy-writing-service
KAFKA_BROKER: kafka:9092
INPUT_KAFKA_TOPIC: branch-energy
OUTPUT_MONGO_URI: mongodb://mongo:27017
OUTPUT_MONGO_DB: gos_mongo
OUTPUT_MONGO_COLLECTION: branch_energy
restart: always
branch-energy-reading-service:
build: ./BranchEnergyReadingService
depends_on:
- mongo
environment:
SERVICE_IDENTIFIER: branch-energy-reading-service
MONGO_URI: mongodb://mongo:27017
MONGO_DB: gos_mongo
MONGO_COLLECTION: branch_energy
# networks:
# - internal
restart: always
#networks:
# internal:
# driver: bridge
volumes:
mongo-data: