-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
77 lines (77 loc) · 2.01 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
version: '3'
services:
hivemq:
build: hivemq
restart: always
ports:
- 1883:1883
- 8080:8080
- 8000:8000
zookeeper:
image: bitnami/zookeeper:latest
restart: always
environment:
ALLOW_ANONYMOUS_LOGIN: 'yes'
volumes:
- ./zookeeper/volumes:/bitnami/zookeeper
kafka:
image: bitnami/kafka:latest
depends_on:
- zookeeper
restart: always
ports:
- 9092:9092
- 29092:29092
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
ALLOW_PLAINTEXT_LISTENER: 'yes'
# see https://rmoff.net/2018/08/02/kafka-listeners-explained/
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://:9092,PLAINTEXT_HOST://:29092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
volumes:
- ./kafka/volumes:/bitnami/kafka
apache:
image: bitnami/apache:2.4
ports:
- 8888:8080
volumes:
- ./apache/influxdb_proxy.conf:/vhosts/influxdb_proxy.conf:ro
mqtt2kafkabridge:
image: marmaechler/mqtt2kafkabridge:1.0.0
depends_on:
- kafka
- hivemq
restart: always
environment:
KAFKA_BROKER_HOST: kafka:9092
MQTT_BROKER_HOST: hivemq:1883
MQTT_AUTOMATIC_RECONNECT: 'true'
volumes:
- ./mqtt2kafkabridge/logs:/opt/mqtt2kafkabridge/logs
kafka2influxdbbridge:
image: marmaechler/kafka2influxdbbridge:latest
depends_on:
- kafka
- influxdb
restart: always
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
INFLUXDB_URL: http://influxdb:8086
INFLUXDB_DATABASE_NAME: iot_home
volumes:
- ./kafka2influxdbbridge/logs:/opt/kafka2influxdbbridge/logs
influxdb:
image: influxdb:1.7
ports:
- 8086:8086
restart: always
volumes:
- ./influxdb/volumes:/var/lib/influxdb
env_file:
- ./influxdb/env-variables.env
iothomeui:
image: marmaechler/iot-home-ui:latest
ports:
- 80:80
restart: always