ops/glances/docker-compose.yml aktualisiert

This commit is contained in:
2026-04-07 06:59:20 +00:00
parent 4a93a539a1
commit 3b6fbfeb85
+14 -4
View File
@@ -4,18 +4,28 @@ services:
container_name: glances container_name: glances
restart: unless-stopped restart: unless-stopped
pid: host pid: host
read_only: true
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
tmpfs:
- /tmp
environment: environment:
GLANCES_OPT: "-w" - TZ=Europe/Berlin
- GLANCES_OPT=-C /glances/conf/glances.conf -w
- PYTHONPYCACHEPREFIX=/tmp/py_caches
volumes: volumes:
- /:/rootfs:ro
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/os-release:/etc/os-release:ro - /etc/os-release:/etc/os-release:ro
- /proc:/host/proc:ro - ./glances.conf:/glances/conf/glances.conf:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
networks: networks:
- frontend_net - frontend_net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:61208/api/4/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.docker.network=frontend_net - traefik.docker.network=frontend_net