-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
50 lines (49 loc) · 1.1 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
version: '3.6'
services:
machines:
build:
context: .
dockerfile: machine_simulator/dockerfile
environment:
- MACHINES=2
- BROKER=mosquitto
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_BUCKET=${INFLUX_BUCKET}
networks:
- factory
depends_on:
- "mosquitto"
mosquitto:
image: eclipse-mosquitto:latest
ports:
- 1883:1883
networks:
- factory
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
# task engine:
downsample:
build:
context: ./task-engine/downsample
dockerfile: ./Dockerfile
environment:
- INFLUX_HOST=${INFLUX_HOST}
- INFLUX_TOKEN=${INFLUX_TOKEN}
- INFLUX_ORG=${INFLUX_ORG}
- INFLUX_BUCKET=${INFLUX_BUCKET}
- INTERVAL=300
restart: always
networks:
factory:
name: factory