Jafner.net/homelab/fighter/config/monitoring/docker-compose.yml

92 lines
2.9 KiB
YAML
Raw Normal View History

2024-02-15 02:09:59 -08:00
version: '3.9'
2022-02-08 17:00:27 -08:00
services:
grafana:
2024-07-16 14:25:20 -07:00
image: grafana/grafana-oss@sha256:b6ea013786be887c06d9664ad133f5300480f5c6b2f4586554d7c3b0756d9849
container_name: monitoring_grafana
restart: "no"
networks:
- monitoring
- web
user: "0"
volumes:
- ${DOCKER_DATA}/grafana:/var/lib/grafana
- ${DOCKER_DATA}/custom.ini:/etc/grafana/grafana.ini
labels:
- traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`)
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt
- traefik.http.routers.grafana.tls.options=tls12@file
- traefik.http.routers.grafana.middlewares=securityheaders@file
prometheus:
2024-07-16 14:25:20 -07:00
image: prom/prometheus@sha256:8c01021bb2f4a685759ae4525aa2ea8460671a0412fd1bd58c205424c290a27e
container_name: monitoring_prometheus
user: 1001:1001
networks:
- monitoring
- web
ports:
2022-07-15 18:27:29 -07:00
- 9090:9090
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
- 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:
2024-07-16 14:25:20 -07:00
image: czerwonk/ping_exporter@sha256:fe65bcfdc16243f6c6eb08edc3bfbc6a80d4fbb60a7e2814138b7014b9cafcf4
2022-08-01 19:07:26 -07:00
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:
2024-07-16 14:25:20 -07:00
image: prometheusnet/docker_exporter@sha256:f48aa98298fcde47edbd97f1c33534318a1f3e28ed9581f56fc2dcb4c3b21455
2022-08-07 14:46:51 -07:00
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:
- traefik.enable=false
2023-11-28 14:25:58 -08:00
exporter-pihole:
2024-07-16 14:25:20 -07:00
image: ekofr/pihole-exporter@sha256:f3ee4b32da43cdd10f12e57a95aab2bd43b9754d73c7394d5f6871a48668d96d
2023-11-28 14:25:58 -08:00
container_name: monitoring_exporter-pihole
env_file:
- 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
uptime-kuma:
2024-07-16 14:25:20 -07:00
image: louislam/uptime-kuma@sha256:e10376878b88fdeaa554b581695b99b5552fbbbb5344806046a859dcd3a2daf0
container_name: monitoring_uptime-kuma
restart: "no"
volumes:
2023-11-22 15:44:53 -08:00
- $DOCKER_DATA/uptime-kuma:/app/data
- /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:
monitoring:
external: true
web:
external: true