Files
homelab-infra/ops/glances/docker-compose.yml
T
2026-04-07 06:50:38 +00:00

31 lines
963 B
YAML

services:
glances:
image: nicolargo/glances:latest-full
container_name: glances
restart: unless-stopped
pid: host
security_opt:
- no-new-privileges:true
environment:
GLANCES_OPT: "-w"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/os-release:/etc/os-release:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
networks:
- frontend_net
labels:
- traefik.enable=true
- traefik.docker.network=frontend_net
- traefik.http.routers.glances.rule=Host(`glances.kaleschke.info`)
- traefik.http.routers.glances.entrypoints=websecure
- traefik.http.routers.glances.tls=true
- traefik.http.routers.glances.tls.certresolver=le
- traefik.http.routers.glances.middlewares=dashboard-auth@file,secure-headers@file
- traefik.http.services.glances.loadbalancer.server.port=61208
networks:
frontend_net:
external: true