blob: 1c4da89e28057bb2e5d4aa12d9e1994aaa696bdd (
plain)
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
|
version: "3"
services:
mqtt:
image: eclipse-mosquitto
ports:
- 1883:1883
- 9001:9001
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./.passwords:/mosquitto/passwd_file
- mosquitto-data:/mosquitto/data
- mosquitto-logs:/mosquitto/log
restart: unless-stopped
influxdb:
image: influxdb:2.0
ports:
- 8086:8086
volumes:
- ./influxdb-config:/etc/influxdb2
- ./influxdb-data:/var/lib/influxdb2
env_file:
- ./config.env
depends_on:
- mqtt
restart: unless-stopped
mqtt_client:
image: reg.reaweb.uk/mqtt-client
build:
context: ./mqtt-client
dockerfile: Dockerfile
env_file:
- ./config.env
depends_on:
- influxdb
restart: unless-stopped
snmp_client:
image: reg.reaweb.uk/snmp-client
build:
context: ./switch-snmp
dockerfile: Dockerfile
env_file:
- ./config.env
depends_on:
- influxdb
restart: unless-stopped
volumes:
- ./switch-snmp/port-names.conf:/app/port-names.conf
volumes:
mosquitto-data:
mosquitto-logs:
|