Joey Hafner
97e4cc547a
1. homelab [Gitea](https://gitea.jafner.tools/Jafner/homelab), [Github (docker_config)](https://github.com/Jafner/docker_config), [Github (wiki)](https://github.com/Jafner/wiki), [Github (cloud_tools)](https://github.com/Jafner/cloud_tools), [Github (self-hosting)](https://github.com/Jafner/self-hosting). - Rename? Jafner.net? Wouldn't that be `Jafner/Jafner.net/Jafner.net`? 2. Jafner.dev [Github](https://github.com/Jafner/Jafner.dev). 3. dotfiles [Gitea](https://gitea.jafner.tools/Jafner/dotfiles), [Github](https://github.com/Jafner/dotfiles). 4. nvgm [Gitea](https://gitea.jafner.tools/Jafner/nvgm) 5. pamidi [Gitea](https://gitea.jafner.tools/Jafner/pamidi), [Github](https://github.com/Jafner/pamidi) 6. docker-llm-amd [Gitea](https://gitea.jafner.tools/Jafner/docker-llm-amd) 7. doradash [Gitea](https://gitea.jafner.tools/Jafner/doradash) 8. clip-it-and-ship-it [Gitea (PyClipIt)](https://gitea.jafner.tools/Jafner/PyClipIt), [Github](https://github.com/Jafner/clip-it-and-ship-it). 9. razer battery led [Github](https://github.com/Jafner/Razer-BatteryLevelRGB) 10. 5etools-docker [Github](https://github.com/Jafner/5etools-docker) 11. jafner-homebrew [Github](https://github.com/Jafner/jafner-homebrew)
92 lines
2.5 KiB
YAML
92 lines
2.5 KiB
YAML
version: '3.9'
|
|
services:
|
|
grafana:
|
|
image: grafana/grafana-oss:latest
|
|
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:
|
|
image: prom/prometheus:latest
|
|
container_name: monitoring_prometheus
|
|
user: 1001:1001
|
|
networks:
|
|
- monitoring
|
|
- web
|
|
ports:
|
|
- 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
|
|
|
|
exporter-ping:
|
|
image: czerwonk/ping_exporter
|
|
container_name: monitoring_exporter-ping
|
|
restart: "no"
|
|
networks:
|
|
- monitoring
|
|
volumes:
|
|
- ./exporter-ping/config.yml:/config/config.yml
|
|
|
|
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
|
|
labels:
|
|
- traefik.enable=false
|
|
|
|
exporter-pihole:
|
|
image: ekofr/pihole-exporter:latest
|
|
container_name: monitoring_exporter-pihole
|
|
env_file:
|
|
- path: ./exporter-pihole.env
|
|
required: true
|
|
- path: ./exporter-pihole_secrets.env
|
|
required: false
|
|
restart: "no"
|
|
networks:
|
|
- monitoring
|
|
labels:
|
|
- traefik.enable=false
|
|
|
|
uptime-kuma:
|
|
image: louislam/uptime-kuma:1
|
|
container_name: monitoring_uptime-kuma
|
|
restart: "no"
|
|
volumes:
|
|
- $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
|
|
|
|
networks:
|
|
monitoring:
|
|
external: true
|
|
web:
|
|
external: true
|