Use glances for monitoring.

This commit is contained in:
2022-06-24 11:37:49 +02:00
parent 7dbcf37583
commit 9d1fed7588

View File

@@ -37,6 +37,25 @@ services:
- "3551:3551/tcp"
- "3551:3551/udp"
glances:
image: nicolargo/glances:latest-full
restart: unless-stopped
hostname: glances
container_name: glances
pid: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "GLANCES_OPT=-w"
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.glances.rule=Host(`glances.lan`)"
- "traefik.http.routers.glances.entrypoints=web"
- "traefik.http.routers.glances.service=glances"
- "traefik.http.services.glances.loadbalancer.server.port=61208"
telegraf:
image: telegraf:alpine
container_name: telegraf