diff options
Diffstat (limited to 'docker-compose')
-rw-r--r-- | docker-compose/docker-compose-with-traefik.yml | 8 | ||||
-rw-r--r-- | docker-compose/docker-compose.yml | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/docker-compose/docker-compose-with-traefik.yml b/docker-compose/docker-compose-with-traefik.yml index 786aa905..32e9ff96 100644 --- a/docker-compose/docker-compose-with-traefik.yml +++ b/docker-compose/docker-compose-with-traefik.yml @@ -22,10 +22,18 @@ services: 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: - GLANCES_OPT: "-C /glances/conf/glances.conf -w" - TZ: "${TZ}" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu] labels: - "traefik.port=61208" - "traefik.frontend.rule=Host:glances.docker.localhost" diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 703d8775..d1e18794 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -10,7 +10,15 @@ services: 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: - GLANCES_OPT: "-C /glances/conf/glances.conf -w" - TZ: "${TZ}" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu]
\ No newline at end of file |