-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
109 lines (102 loc) · 2.37 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.6'
services:
mqtt:
image: eclipse-mosquitto:latest
container_name: mosquitto-ffds
restart: always
volumes:
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto/data/:/mosquitto/data
networks:
se4iot-network:
ipv4_address: 172.30.0.100
ports:
- "1883:1883"
- "9001:9001"
node-red:
container_name: se4iot-nodered-ffds
build:
context: ./nodered/
dockerfile: Dockerfile
image: se4iot_nodered:latest
ports:
- "1880:1880"
networks:
se4iot-network:
ipv4_address: 172.30.0.104
volumes:
- ./nodered/data:/data
telegraf:
image: telegraf
container_name: telegraf-ffds
restart: always
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- influxdb
- mqtt
links:
- influxdb
ports:
- '8125:8125'
networks:
se4iot-network:
ipv4_address: 172.30.0.101
influxdb:
image: influxdb:2.4-alpine
container_name: influxdb-ffds
restart: always
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=se4iot_token
- DOCKER_INFLUXDB_INIT_ORG=se4iot
- DOCKER_INFLUXDB_INIT_BUCKET=forestsensors
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=admin123
ports:
- '8086:8086'
volumes:
- influxdb_data:/var/lib/influxdb
networks:
se4iot-network:
ipv4_address: 172.30.0.102
grafana:
image: grafana/grafana
container_name: grafana-server-ffds
restart: always
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_INSTALL_PLUGINS=
links:
- influxdb
ports:
- '3000:3000'
volumes:
- ./grafana:/var/lib/grafana
networks:
se4iot-network:
ipv4_address: 172.30.0.103
sensor_simulation:
build:
context: ./SensorSimulation/
dockerfile: ./Dockerfile
volumes:
- ./SensorSimulation/:/usr/src/app/
restart: always
networks:
se4iot-network:
ipv4_address: 172.30.0.106
depends_on:
- mqtt
volumes:
grafana_data: {}
influxdb_data: {}
networks:
se4iot-network:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16