glances/docker-compose/docker-compose.yml

24 lines
625 B
YAML
Raw Normal View History

version: '3.9'
2020-11-21 12:26:15 +03:00
services:
glances:
build:
context: ./
dockerfile: Dockerfile
restart: always
pid: "host"
privileged: true
network_mode: "host"
2020-11-21 12:26:15 +03:00
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro"
2020-11-21 12:26:15 +03:00
- "./glances.conf:/glances/conf/glances.conf"
environment:
- GLANCES_OPT: "-C /glances/conf/glances.conf -w"
- TZ: "${TZ}"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]