generated from a3510377/grafana-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
86 lines (80 loc) · 2.15 KB
/
docker-compose.yaml
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
services:
# node_exporter:
# image: quay.io/prometheus/node-exporter:latest
# restart: unless-stopped
# command:
# - --path.rootfs=/host
# pid: host
# expose: [9100]
# networks: [background]
# volumes:
# - /:/host:ro,rslave
prometheus:
image: prom/prometheus
restart: unless-stopped
ports: [9090:9090]
volumes:
- prometheus-volume:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
logging:
driver: json-file
options:
max-size: 10m
networks: [background]
extra_hosts:
- host.docker.internal:host-gateway
# depends_on:
# - netdata
# - node_exporter
grafana:
image: grafana/grafana
restart: unless-stopped
volumes:
- ./datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- grafana-storage:/var/lib/grafana
ports: [3300:3000]
environment:
GF_AUTH_ANONYMOUS_ENABLED: true
GF_AUTH_ANONYMOUS_ORG_NAME: CTEC
GF_AUTH_ANONYMOUS_ORG_ROLE: Viewer
GF_AUTH_ANONYMOUS_HIDE_VERSION: true
GF_USERS_DEFAULT_LANGUAGE: detect
GF_LOG_FILTERS: rendering:debug
GF_RENDERING_CALLBACK_URL: http://grafana:3000/
networks: [background]
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- prometheus
# netdata:
# image: netdata/netdata
# pid: host
# # network_mode: host
# restart: unless-stopped
# expose: [19999]
# networks: [background]
# cap_add:
# - SYS_PTRACE
# - SYS_ADMIN
# security_opt:
# - apparmor:unconfined
# volumes:
# - netdataconfig:/etc/netdata
# - netdatalib:/var/lib/netdata
# - netdatacache:/var/cache/netdata
# - /etc/passwd:/host/etc/passwd:ro
# - /etc/group:/host/etc/group:ro
# - /etc/localtime:/etc/localtime:ro
# - /proc:/host/proc:ro
# - /sys:/host/sys:ro
# - /etc/os-release:/host/etc/os-release:ro
# - /var/log:/host/var/log:ro
# - /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
# netdataconfig:
# netdatalib:
# netdatacache:
prometheus-volume:
grafana-storage:
networks:
background: