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
|
---
services:
influxdb:
image: influxdb:latest
container_name: influxdb
environment:
- PUID=1024
- PGID=1024
- TZ=Europe/Moscow
volumes:
- /dconf/influxdb/backup:/backup
- /dconf/influxdb/influxdb2:/var/lib/influxdb2
ports:
- 8086:8086
restart: unless-stopped
telegraf:
image: telegraf
container_name: telegraf
privileged: true
environment:
- TZ=Europe/Moscow
- HOST_VAR=/hostfs/var
- HOST_PROC=/hostfs/proc
- HOST_SYS=/hostfs/sys
- HOST_MOUNT_PREFIX=/hostfs
- HOST_ETC=/hostfs/etc
- HOST_RUN=/hostfs/run
volumes:
- /dconf/influxdb/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/hostfs:ro
network_mode: host
restart: unless-stopped
|