homelab/server/config/monitoring/docker-compose.yml

114 lines
3.6 KiB
YAML
Raw Normal View History

2022-02-08 17:00:27 -08:00
version: '3'
services:
grafana:
image: grafana/grafana-oss:latest
2022-05-12 21:48:08 -07:00
container_name: monitoring_grafana
restart: "no"
networks:
- monitoring
- web
user: "0"
volumes:
- ${DOCKER_DATA}/grafana:/var/lib/grafana
2022-05-13 09:37:06 -07:00
- ./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.middlewares=authelia@file
2022-02-08 17:00:27 -08:00
prometheus:
image: prom/prometheus:latest
container_name: monitoring_prometheus
2022-05-12 21:52:33 -07:00
user: "1000:1000"
2022-02-08 17:00:27 -08:00
networks:
- monitoring
- web
ports:
- 9090:9090
volumes:
2022-05-12 21:48:08 -07:00
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ${DOCKER_DATA}/prometheus:/prometheus
restart: "no"
2022-02-08 17:00:27 -08:00
command:
- "--config.file=/etc/prometheus/prometheus.yml"
labels:
2022-07-10 16:01:15 -07:00
- traefik.http.routers.prometheus-monitoring.rule=Host(`prometheus.jafner.net`)
- traefik.http.routers.prometheus-monitoring.tls.certresolver=lets-encrypt
2022-07-10 16:04:10 -07:00
- traefik.http.routers.prometheus-monitoring.middlewares=authentik@file
2022-07-07 23:12:57 -07:00
loki:
image: grafana/loki:2.5.0
container_name: monitoring_loki
networks:
2022-07-07 23:20:02 -07:00
- monitoring
2022-07-07 23:12:57 -07:00
- web
ports:
- "3100:3100"
volumes:
- ${DOCKER_DATA}/loki:/etc/loki
- ./loki-config.yml:/etc/loki/loki-config.yml # not sure if this works. If not, just edit the config within the data volume
restart: "no"
2022-07-07 23:12:57 -07:00
command: -config.file=/etc/loki/loki-config.yml
labels:
- traefik.http.routers.loki.rule=Host(`loki.jafner.net`)
- traefik.http.routers.loki.tls.certresolver=lets-encrypt
2022-07-07 23:12:57 -07:00
2022-02-08 17:00:27 -08:00
pihole-jafner-net:
image: ekofr/pihole-exporter:latest
container_name: monitoring_prometheus-pihole-jafner-net
restart: "no"
2022-02-08 17:00:27 -08:00
networks:
- monitoring
environment:
- PIHOLE_HOSTNAME=pihole.jafner.net
- PIHOLE_PASSWORD=wjrXfjjEsPRCoBkVLKG3FmTaX8DZvBWh5z7ba6GBukAzYjms3k
- INTERVAL=15s
- PORT=9617
labels:
- traefik.enable=false
2022-03-18 11:46:56 -07:00
mc-monitor:
image: itzg/mc-monitor # https://github.com/itzg/mc-monitor
container_name: monitoring_mc-monitor
2022-03-18 11:46:56 -07:00
command: export-for-prometheus
restart: "no"
2022-03-18 11:46:56 -07:00
networks:
- monitoring
- mc-router
environment:
2022-06-29 11:10:59 -07:00
EXPORT_SERVERS: e6-056,vanilla,bmcp,e6,e6-dev,fan
2022-04-29 11:34:17 -07:00
labels:
- traefik.enable=false
2022-02-08 17:00:27 -08:00
2022-05-03 14:29:03 -07:00
plex-exporter:
2022-05-03 14:31:44 -07:00
image: granra/plex_exporter
2022-05-03 14:29:03 -07:00
container_name: monitoring_plex-exporter
restart: "no"
2022-05-03 14:29:03 -07:00
networks:
- monitoring
command:
- "--plex-server=https://plex.jafner.net"
2022-07-09 01:09:48 -07:00
- "--token=5PLsbzsQTXomf88sKyGr"
- "--auto-discover"
2022-05-04 09:31:30 -07:00
labels:
- traefik.enable=false
2022-05-11 01:35:59 -07:00
sabnzbd_exporter:
image: msroest/sabnzbd_exporter # https://github.com/msroest/sabnzbd_exporter
container_name: monitoring_sabnzbd_exporter
restart: "no"
2022-05-11 01:35:59 -07:00
networks:
- monitoring
environment:
- SABNZBD_BASEURLS=https://sabnzbd.jafner.net:443
- SABNZBD_APIKEYS=b7af57a920014eb08aa3881fc0384c4f
2022-05-03 14:29:03 -07:00
2022-02-08 17:00:27 -08:00
networks:
monitoring:
external: true
web:
external: true
2022-03-18 11:46:56 -07:00
mc-router:
external: true