2024-02-15 02:09:59 -08:00
|
|
|
version: '3.9'
|
2022-02-08 17:00:27 -08:00
|
|
|
services:
|
2022-07-13 13:35:56 -07:00
|
|
|
grafana:
|
|
|
|
image: grafana/grafana-oss:latest
|
|
|
|
container_name: monitoring_grafana
|
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
- web
|
|
|
|
user: "0"
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/grafana:/var/lib/grafana
|
2024-06-25 12:19:58 -07:00
|
|
|
- ${DOCKER_DATA}/custom.ini:/etc/grafana/grafana.ini
|
2022-07-13 13:35:56 -07:00
|
|
|
labels:
|
|
|
|
- traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`)
|
|
|
|
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt
|
2022-11-14 14:18:44 -08:00
|
|
|
- traefik.http.routers.grafana.tls.options=tls12@file
|
|
|
|
- traefik.http.routers.grafana.middlewares=securityheaders@file
|
2022-05-12 21:36:21 -07:00
|
|
|
|
2022-07-13 13:35:56 -07:00
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
container_name: monitoring_prometheus
|
2023-10-19 11:36:07 -07:00
|
|
|
user: 1001:1001
|
2022-07-13 13:35:56 -07:00
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
- web
|
|
|
|
ports:
|
2022-07-15 18:27:29 -07:00
|
|
|
- 9090:9090
|
2022-07-13 13:35:56 -07:00
|
|
|
volumes:
|
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
- ${DOCKER_DATA}/prometheus:/prometheus
|
|
|
|
restart: "no"
|
|
|
|
command:
|
|
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.prometheus-monitoring.rule=Host(`prometheus.jafner.net`)
|
|
|
|
- traefik.http.routers.prometheus-monitoring.tls.certresolver=lets-encrypt
|
2023-01-11 21:20:19 -08:00
|
|
|
- traefik.http.routers.prometheus-monitoring.middlewares=traefik-forward-auth-privileged@file
|
2022-08-08 15:41:03 -07:00
|
|
|
|
2022-08-01 19:07:26 -07:00
|
|
|
exporter-ping:
|
|
|
|
image: czerwonk/ping_exporter
|
|
|
|
container_name: monitoring_exporter-ping
|
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
volumes:
|
2022-08-01 19:11:59 -07:00
|
|
|
- ./exporter-ping/config.yml:/config/config.yml
|
2022-08-07 14:46:51 -07:00
|
|
|
|
|
|
|
exporter-docker:
|
|
|
|
image: prometheusnet/docker_exporter
|
|
|
|
container_name: monitoring_exporter-docker
|
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2022-08-08 00:01:51 -07:00
|
|
|
labels:
|
2022-11-01 01:00:18 -07:00
|
|
|
- traefik.enable=false
|
2023-11-28 14:25:58 -08:00
|
|
|
|
|
|
|
exporter-pihole:
|
2023-11-28 14:27:10 -08:00
|
|
|
image: ekofr/pihole-exporter:latest
|
2023-11-28 14:25:58 -08:00
|
|
|
container_name: monitoring_exporter-pihole
|
|
|
|
env_file:
|
2024-02-15 02:05:23 -08:00
|
|
|
- path: ./exporter-pihole.env
|
|
|
|
required: true
|
|
|
|
- path: ./exporter-pihole_secrets.env
|
|
|
|
required: false
|
2023-11-28 14:25:58 -08:00
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2022-05-03 14:29:03 -07:00
|
|
|
|
2023-11-22 15:38:56 -08:00
|
|
|
uptime-kuma:
|
|
|
|
image: louislam/uptime-kuma:1
|
|
|
|
container_name: monitoring_uptime-kuma
|
|
|
|
restart: "no"
|
|
|
|
volumes:
|
2023-11-22 15:44:53 -08:00
|
|
|
- $DOCKER_DATA/uptime-kuma:/app/data
|
2023-11-22 15:38:56 -08:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.uptime-kuma.rule=Host(`uptime.jafner.net`)
|
|
|
|
- traefik.http.routers.uptime-kuma.tls.certresolver=lets-encrypt
|
|
|
|
|
2022-02-08 17:00:27 -08:00
|
|
|
networks:
|
2022-07-13 13:35:56 -07:00
|
|
|
monitoring:
|
|
|
|
external: true
|
|
|
|
web:
|
|
|
|
external: true
|