forked from ant3/MAT-Coding-Challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (69 loc) · 2.16 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
version: "3"
services:
# MQTT broker
broker:
image: toke/mosquitto
ports:
- "1883:1883/tcp"
# GPS coords source
source_gps:
image: mclarenappliedtechnologies/recruitment.fanengagement.streamgenerator
links:
- broker
env_file:
- ./source_gps.env
- ./mqtt.env
- ./cars.env
ports:
- "8081:8080/tcp"
# Write to websocket
mqtt_to_websocket:
image: mclarenappliedtechnologies/recruitment.fanengagement.forwarder
env_file:
- ./mqtt.env
ports:
- "8080:8080/tcp"
# support for clients behind a restrictive network or corporate proxy server
- "443:8080/tcp"
# Webapp
webapp:
image: mclarenappliedtechnologies/recruitment.fanengagement.webapp
volumes:
# change "http://127.0.0.1:8080/ws" to "http://"+window.location.hostname+":8080/ws"
#- $PWD/main.8080.js:/usr/share/nginx/html/main.8e11a759906efd075879.js
# change "http://127.0.0.1:8080/ws" to "http://"+window.location.hostname+":443/ws"
- $PWD/main.443.js:/usr/share/nginx/html/main.8e11a759906efd075879.js
ports:
- "8084:8084/tcp"
# support for clients behind a restrictive network or corporate proxy server
- "80:8084/tcp"
# Zookeeper
zookeeper:
image: strimzi/kafka:0.11.3-kafka-2.1.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "2181:2181"
environment:
LOG_DIR: /tmp/logs
# Kafka
kafka:
image: strimzi/kafka:0.11.3-kafka-2.1.0
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}"
]
ports:
- "9092:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# MAT Coding Challenge: Solution
telemetry:
image: nicdesousa/mat-coding-challenge:${TELEMETRY_IMAGE_TAG:-latest}
environment:
QUARKUS_PROFILE: dev