-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 2.45 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
version: "3.8"
services:
prometheus:
image: quay.io/prometheus/prometheus
container_name: prometheus
volumes:
- prometheus_data:/prometheus
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- 9090:9090
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.size=10GB" # Comment this line to revert back to the default retention size.
- "--storage.tsdb.retention.time=1y" # Comment this line to revert back to the default retention time.
# - "--web.enable-admin-api" # Uncomment this line if you want to take snapshots through the API.
restart: unless-stopped
json_exporter:
image: quay.io/prometheuscommunity/json-exporter:v0.5.0
container_name: json_exporter
volumes:
- ./prometheus/exporters/json_exporter/config.yml:/config.yml:ro
ports:
- 7979:7979
restart: unless-stopped
# adsbx_exporter: # NOTE: Disabled because adsbx protected their endpoint.
# build:
# context: ./prometheus/exporters/adsbx_exporter
# dockerfile: Dockerfile
# container_name: adsbx_exporter
# ports:
# - 19100:19100
# restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: grafana
volumes:
- ./grafana/dashboards:/var/lib/grafana/dashboards
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- grafana_data:/var/lib/grafana
ports:
- 3000:3000
environment:
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: "/var/lib/grafana/dashboards/aggregators_dashboard.json"
GF_PANELS_DISABLE_SANITIZE_HTML: true # Uncomment this line to allow HTML in Grafana dashboards.
# GF_SECURITY_ALLOW_EMBEDDING: true # Uncomment this line to allow embedding of Grafana dashboards.
# GF_AUTH_ANONYMOUS_ENABLED: true # Uncomment this line to allow anonymous access to Grafana.
# GF_AUTH_DISABLE_LOGIN_FORM: true # Uncomment if you want to hide the grafana login form.
# GF_AUTH_ANONYMOUS_HIDE_VERSION: true # Uncomment this line to hide the version number from the Grafana UI.
# GF_AUTH_ANONYMOUS_ORG_NAME: "Main Org." # Uncomment this to set anonymous login organization.
restart: unless-stopped
volumes:
portainer_data:
prometheus_data:
grafana_data:
networks:
default:
name: adsb-dashboards