This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (89 loc) · 2.47 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
version: '2.4'
services:
influxdb:
user: "${UID}:${GID}"
image: influxdb:1.8.10
restart: always
volumes:
# Mount for influxdb data directory
- ./influxdb/data:/var/lib/influxdb
# Mount for influxdb configuration
- ./influxdb/config/:/etc/influxdb/
ports:
- "127.0.0.1:8086:8086"
telegraf:
user: "${UID}:${GID}"
image: telegraf:1.22.0
restart: always
command: -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
environment:
HOST_ETC: /hostfs/etc
HOST_PROC: /hostfs/proc
HOST_SYS: /hostfs/sys
HOST_MOUNT_PREFIX: /hostfs
MQTT_SERVER: tcp://mosquitto:1883
HOSTNAME:
FRONIUS_LISTENER_ADDRESS:
volumes:
# Mount for telegraf configuration
- ./telegraf/:/etc/telegraf/
# Mount for Docker API access
- /var/run/docker.sock:/var/run/docker.sock
# Mounts for host monitoring
- /:/hostfs:ro
- /etc:/hostfs/etc:ro
- /proc:/hostfs/proc:ro
- /sys:/hostfs/sys:ro
- /var/run/utmp:/var/run/utmp:ro
ports:
- "0.0.0.0:8090:8090"
depends_on:
- influxdb
kapacitor:
user: "${UID}:${GID}"
image: kapacitor:1.5.9
restart: always
environment:
- KAPACITOR_SMTP_ENABLED
- KAPACITOR_SMTP_HOST
- KAPACITOR_SMTP_PORT
- KAPACITOR_SMTP_USERNAME
- KAPACITOR_SMTP_PASSWORD
- KAPACITOR_SMTP_FROM
- KAPACITOR_SMTP_TO_0
volumes:
# Mount for kapacitor data directory
- ./kapacitor/data/:/var/lib/kapacitor
# Mount for kapacitor configuration
- ./kapacitor/config/:/etc/kapacitor/
chronograf:
user: "${UID}:${GID}"
image: chronograf:1.9.4
restart: always
environment:
RESOURCES_PATH: "/usr/share/chronograf/resources"
CHRONOGRAF_ORGANIZATION:
LOG_LEVEL: "error"
volumes:
# Mount for chronograf database
- ./chronograf/data/:/var/lib/chronograf/
# Mount for chronograf resources
- ./chronograf/resources/:/usr/share/chronograf/resources/
ports:
# The WebUI for Chronograf is served on port 8888
- "0.0.0.0:8888:8888"
depends_on:
- kapacitor
- influxdb
- telegraf
mosquitto:
user: "1883:1883"
image: eclipse-mosquitto:2.0.14
restart: always
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- mosquitto-data:/mosquitto/data/
ports:
- 0.0.0.0:1883:1883
volumes:
mosquitto-data: