-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml.sample
75 lines (75 loc) · 2.15 KB
/
docker-compose.yaml.sample
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
version: "3"
volumes:
influxdb_data1:
influxdb_data2:
services:
grafana:
image: grafana/grafana:latest
container_name: GTF-monitoring_grafana
ports:
- 3000:3000
environment:
- HOSTNAME=
- GRAFANA_PUBLIC_URL=https://grafana.domain.com
- GRAFANA_IDB_ORG=
- GRAFANA_IDB_BUCKET=
- GRAFANA_IDB_TOKEN=
- GRAFANA_SMTP_ENABLED=true
- GRAFANA_SMTP_ADDRESS=mail.domain.local:587
- GRAFANA_SMTP_USER=
- GRAFANA_SMTP_PASSWORD=
- GRAFANA_SMTP_SKIP_VERIFY=false
- GRAFANA_SMTP_FROM_ADDRESS=
- GRAFANA_SMTP_FROM_NAME=Grafana
- GRAFANA_EMAIL_ON_SIGN_UP=true
volumes:
- /appdata/grafana/etc-grafana:/etc/grafana
- /appdata/grafana/var-lib-grafana:/var/lib/grafana
- /appdata/grafana/provisioning:/etc/grafana/provisioning
restart: always
influxdb:
image: influxdb:latest
container_name: GTF-monitoring_influxdb
ports:
- 8086:8086
environment:
- DOCKER_INFLUXDB_INIT_USERNAME=
- DOCKER_INFLUXDB_INIT_PASSWORD=
- DOCKER_INFLUXDB_INIT_ORG=
- DOCKER_INFLUXDB_INIT_BUCKET=
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=
volumes:
- influxdb_data1:/etc/influxdb2
- influxdb_data2:/var/lib/influxdb2
- /appdata/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
restart: always
telegraf:
image: telegraf:latest
container_name: GTF-monitoring_telegraf
ports:
- 8125:8125
- 8092:8092/udp
- 8094:8094
user: telegraf:998
environment:
- HOST_PROC=/rootfs/proc
- HOST_SYS=/rootfs/sys
- HOST_ETC=/rootfs/etc
- HOST_MOUNT_PREFIX=/rootfs
- TELEGRAF_GET_INTERVAL=5s
- TELEGRAF_SEND_INTERVAL=10s
- TELEGRAF_HOSTNAME=
- TELEGRAF_IDB_URL=http://influxdb:8086
- TELEGRAF_IDB_ORG=
- TELEGRAF_IDB_BUCKET=
- TELEGRAF_IDB_TOKEN=
volumes:
- /appdata/telegraf/:/etc/telegraf/
- /var/run/utmp:/var/run/utmp:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/rootfs:ro
- /sys:/rootfs/sys:ro
- /etc:/rootfs/etc:ro
- /proc:/rootfs/proc:ro
- /run/udev:/run/udev:ro
restart: always