-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (58 loc) · 1.55 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
# Adapted from: https://github.com/guinp1n/docker-compose-hivemq-ce
version: "1.0"
services:
hivemq:
image: hivemq/hivemq-ce # hivemq/hivemq4:latest
container_name: hivemq-broker
environment:
- HIVEMQ_LOG_LEVEL=DEBUG
ports:
- "1883:1883"
- "8080:8080"
- "9399:9399"
volumes:
- ./config/hive-config.xml:/opt/hivemq/conf/config.xml
- ./hivemq-prometheus-extension:/opt/hivemq/extensions/hivemq-prometheus-extension
networks:
- hivemq_net
prometheus:
container_name: prometheus-ce
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
healthcheck:
test: "wget --no-verbose --tries=1 --spider localhost:9090 || exit 1"
start_period: 5s
interval: 30s
timeout: 10s
retries: 5
depends_on:
- "hivemq"
networks:
- hivemq_net
publiser:
image: km0lima/mqtt_virtual_publisher:latest
container_name: publisher-ce
volumes:
- ./config/publisher.yml:/etc/publisher/config.yaml
# - ./publisher/data:/data
depends_on:
- "data-validation"
networks:
- hivemq_net
data-validation:
image: km0lima/data_instrumentation_models23:latest
container_name: data-validation-ce
ports:
- "9091:9091"
volumes:
- ./config/data_instrumentation.yml:/etc/data_instrumentation/config.yaml
depends_on:
prometheus:
condition: service_healthy
networks:
- hivemq_net
networks:
hivemq_net: