-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (67 loc) · 1.59 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
version: "3.7"
volumes:
telraam_grafana_storage: {}
prometheus_data: {}
loki_storage: {}
services:
timesync:
build:
context: timesync/
dockerfile: Dockerfile
network_mode: host
prometheus:
image: prom/prometheus:v2.51.1
volumes:
- ./prometheus/:/etc/prometheus
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
- "--web.enable-admin-api"
network_mode: host
depends_on:
- blackbox
- snmp
# ports:
# - "9090:9090"
snmp:
build:
context: snmp/
dockerfile: Dockerfile
network_mode: host
blackbox:
build:
context: blackbox/
dockerfile: Dockerfile
network_mode: host
# ports:
# - "9115:9115"
json:
build:
context: json_exporter/
dockerfile: Dockerfile
network_mode: host
grafana:
build:
context: grafana
user: "472"
# depends_on:
# - prometheus
# Host network so grafana can query to localhost for development
network_mode: host
#ports:
# - "3000:3000"
volumes:
- telraam_grafana_storage:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./grafana/config.monitoring
loki:
image: grafana/loki:2.9.4
network_mode: host
volumes:
- loki_storage:/loki
- ./loki/:/etc/loki
command: -config.file=/etc/loki/local-config.yml