Skip to content

Self-hosted AI workspace.

Python

Allow to customize the render GID to match the one on the host (#515)

Dr-Shadowc81efd6beeb9
diff --git a/.env.example b/.env.example
index e3d6a13f5..d8c872bb0 100644
--- a/.env.example
+++ b/.env.example
@@ -139,8 +139,9 @@ SEARXNG_INSTANCE=http://localhost:8080
# COMPOSE_FILE=docker-compose.yml:docker/gpu.nvidia.yml
# COMPOSE_FILE=docker-compose.yml;docker/gpu.nvidia.yml #(Windows)
#
-# AMD ROCm (requires ROCm drivers on the host):
+# AMD ROCm (requires ROCm drivers on the host and the GID of the render group):
# COMPOSE_FILE=docker-compose.yml:docker/gpu.amd.yml
+# RENDER_GID=992
#
# These overlays only expose the GPU devices. The slim Odysseus image
# still needs CUDA/ROCm userspace via Cookbook -> Dependencies (vLLM,
diff --git a/docker/gpu.amd.yml b/docker/gpu.amd.yml
index 6a0ac396b..6d427c824 100644
--- a/docker/gpu.amd.yml
+++ b/docker/gpu.amd.yml
@@ -15,4 +15,4 @@ services:
- /dev/dri
group_add:
- video
- - render
+ - ${RENDER_GID:-render}