-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-compose.yaml
42 lines (37 loc) · 1.03 KB
/
local-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
version: "3.2"
networks:
probe:
services:
prometheus:
image: "prom/prometheus:${PROMETHEUS_TAG:-v2.22.1}" # Reflect version in dev/prod by default
volumes:
- ./local/prometheus/:/etc/prometheus/
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--storage.tsdb.path=/prometheus"
ports:
- 9090:9090
networks:
- probe
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: "grafana/grafana:${GRAFANA_TAG:-7.4.1}" # Reflect version in dev/prod by default
volumes:
- ./local/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/default.yaml
- ./local/grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/default.yaml
- ./local/grafana/probe_dashboard.json:/etc/dashboards/probe/probe_dashboard.json
ports:
- 3000:3000
networks:
- probe
db:
image: grafana/tns-db:latest
ports:
- 8082:80
networks:
- probe
httpserver:
build: ./local/http_server
ports:
- 8081:8081