2022-10-15 12:45:01 +03:00
|
|
|
version: '3.9'
|
2020-11-21 12:26:15 +03:00
|
|
|
services:
|
|
|
|
glances:
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
restart: always
|
2023-03-05 11:25:53 +03:00
|
|
|
pid: "host"
|
|
|
|
privileged: true
|
2023-03-04 11:23:57 +03:00
|
|
|
network_mode: "host"
|
2020-11-21 12:26:15 +03:00
|
|
|
volumes:
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
2023-05-14 00:15:40 +03:00
|
|
|
- "/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"
|
2023-03-05 11:25:53 +03:00
|
|
|
environment:
|
2023-11-04 13:34:27 +03:00
|
|
|
- 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]
|