-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
60 lines (60 loc) · 1.39 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
version: '3'
services:
generators:
build:
context: .
dockerfile: generator_simulator/dockerfile
environment:
- GENERATORS=3
- BROKER=mosquitto
networks:
- mqtt
depends_on:
- "mosquitto"
telegraf:
image: telegraf:latest
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
networks:
- mqtt
depends_on:
- "mosquitto"
- "influxdb"
mosquitto:
image: eclipse-mosquitto:latest
ports:
- 1883:1883
networks:
- mqtt
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
influxdb:
image: influxdb:latest
volumes:
# Mount for influxdb data directory and configuration
- ./influxdb/data:/var/lib/influxdb2:rw
ports:
- 8086:8086
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=demouser
- DOCKER_INFLUXDB_INIT_PASSWORD=demouser
- DOCKER_INFLUXDB_INIT_ORG=influxroadshow
- DOCKER_INFLUXDB_INIT_BUCKET=generators
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=edge
- DOCKER_INFLUXDB_INIT_RETENTION=1d
networks:
- mqtt
# TODO: Should be put back to latest once 10.3.1 is released
grafana:
image: grafana/grafana:10.3.1
ports:
- 3000:3000
volumes:
- grafana:/var/lib/grafana/
networks:
- mqtt
networks:
mqtt:
volumes:
grafana: