-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 910 Bytes
/
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
version: '3'
services:
mosquitto:
image: eclipse-mosquitto:1.6.9
container_name: mosquitto
ports:
- 1883:1883
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto/users:/mosquitto/config/users
- ${DATA_DIR}/mosquitto/data:/mosquitto/data
- ${DATA_DIR}/mosquitto/log:/mosquitto/log
restart: always
influxdb:
image: influxdb:1.7.10
container_name: influxdb
ports:
- 8086:8086
volumes:
- ${DATA_DIR}/influxdb:/var/lib/influxdb
restart: always
grafana:
image: grafana/grafana:6.7.3
container_name: grafana
depends_on:
- influxdb
ports:
- 3000:3000
volumes:
- ${DATA_DIR}/grafana:/var/lib/grafana
restart: always
mqttbridge:
build: ./bridge
container_name: mqttbridge
depends_on:
- mosquitto
- influxdb
restart: always