ops/glances/docker-compose.yml aktualisiert
This commit is contained in:
@@ -4,18 +4,28 @@ services:
|
||||
container_name: glances
|
||||
restart: unless-stopped
|
||||
pid: host
|
||||
read_only: true
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
tmpfs:
|
||||
- /tmp
|
||||
environment:
|
||||
GLANCES_OPT: "-w"
|
||||
- TZ=Europe/Berlin
|
||||
- GLANCES_OPT=-C /glances/conf/glances.conf -w
|
||||
- PYTHONPYCACHEPREFIX=/tmp/py_caches
|
||||
volumes:
|
||||
- /:/rootfs:ro
|
||||
- /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
|
||||
- ./glances.conf:/glances/conf/glances.conf:ro
|
||||
networks:
|
||||
- frontend_net
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:61208/api/4/status"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=frontend_net
|
||||
|
||||
Reference in New Issue
Block a user