forked from Jayclifford345/Arrow-Task-Engine
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
56 lines (53 loc) · 1.28 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
version: '3'
services:
machines:
build:
context: .
dockerfile: machine_simulator/dockerfile
environment:
- MACHINES=2
- BROKER=mosquitto
ports:
- 5005:5005
networks:
- factory
depends_on:
- "mosquitto"
telegraf:
image: telegraf:latest
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
environment:
- INFLUX_HOST=${INFLUX_HOST}
- INFLUX_TOKEN=${INFLUX_TOKEN}
- INFLUX_ORG=${INFLUX_ORG}
- INFLUX_DATABASE=${INFLUX_DATABASE}
networks:
- factory
depends_on:
- "mosquitto"
mosquitto:
image: eclipse-mosquitto:latest
ports:
- 1883:1883
networks:
- factory
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- INFLUX_HOST=${INFLUX_HOST}
- INFLUX_TOKEN=${INFLUX_TOKEN}
- INFLUX_ORG=${INFLUX_ORG}
- INFLUX_DATABASE=${INFLUX_DATABASE}
- GF_INSTALL_PLUGINS=influxdata-flightsql-datasource
volumes:
- ./grafana/datasources:/etc/grafana/provisioning/datasources
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards
networks:
- factory
networks:
factory: