mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 13:23:12 +03:00
26 lines
704 B
YAML
26 lines
704 B
YAML
version: '3.9'
|
|
services:
|
|
glances:
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
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 compatibility (Nvidia) inside the container
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: 1
|
|
# capabilities: [gpu]
|