-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 2.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (53 loc) · 2.03 KB
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
# https://docs.docker.com/reference/compose-file/
services:
# https://docs.victoriametrics.com/victoriametrics/quick-start/
# remove this section if long term data is not required
# also remove section in telegraf.conf
victoriametrics:
container_name: grafterburner-victoriametrics
image: victoriametrics/victoria-metrics:latest
restart: always
# uncomment below to access VM-UI
# ports:
# - 8428:8428
command:
- "--storageDataPath=/storage" # Storage path inside container
- "--graphiteListenAddr=:2003" # Graphite plaintext format, UDP / TCP
- "--opentsdbListenAddr=:4242" # OpenTSDB format, UDP / TCP
- "--influxListenAddr=:8189" # InfluxDB line protocol, UDP / TCP
- "--httpListenAddr=:8428" # HTTP / InfluxDB format, TCP
- "--search.latencyOffset=1s" # Data becomes available 1s after ingestion
- "--retentionPeriod=1" # Months
volumes:
- ./victoriametrics:/storage
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-docker/
grafana:
container_name: grafterburner-grafana
image: grafana/grafana:latest
restart: always
user: "1000"
ports:
- 8025:3000
volumes:
- "./grafana/storage:/var/lib/grafana"
- "./grafana/datasources:/etc/grafana/provisioning/datasources"
- "./grafana/dashboards:/etc/grafana/provisioning/dashboards"
environment:
- "GF_DASHBOARDS_MIN_REFRESH_INTERVAL=1s"
# change below options for security if required
# https://github.com/grafana/grafana/blob/main/conf/defaults.ini
- "GF_AUTH_DISABLE_LOGIN=true"
- "GF_AUTH_DISABLE_LOGIN_FORM=true"
- "GF_AUTH_ANONYMOUS_ENABLED=true"
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin"
# https://hub.docker.com/_/telegraf
telegraf:
container_name: grafterburner-telegraf
image: telegraf:latest
restart: always
# noisy spam in logs when PC is offline
# remove if you need to debug issues
# logging:
# driver: none
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro