mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-11 22:22:33 +03:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: "3.9"
|
|
services:
|
|
reverse-proxy:
|
|
image: traefik
|
|
command: --api --docker
|
|
ports:
|
|
- "80:80"
|
|
- "8080:8080"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
whoami:
|
|
image: emilevauge/whoami
|
|
labels:
|
|
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
|
|
|
monitoring:
|
|
image: nicolargo/glances:dev
|
|
restart: unless-stopped
|
|
pid: host
|
|
privileged: true
|
|
network_mode: "host"
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
- "/run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro"
|
|
- "./glances.conf:/glances/conf/glances.conf"
|
|
environment:
|
|
- TZ=${TZ}
|
|
- "GLANCES_OPT=-C /glances/conf/glances.conf -w"
|
|
# Uncomment for GPU compatibilty (Nvidia) inside the container
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: 1
|
|
# capabilities: [gpu]
|
|
labels:
|
|
- "traefik.port=61208"
|
|
- "traefik.frontend.rule=Host:glances.docker.localhost"
|