diff --git a/.env.example b/.env.example index e01c52b..57226c9 100644 --- a/.env.example +++ b/.env.example @@ -31,3 +31,8 @@ COMFYUIMINI_REF=main # Model Manager - StabilityMatrix-style model download/management UI # Access at http://:8189 MODEL_MANAGER_PORT=8189 + +# Run the Model Manager container as this host user/group so downloaded +# models are owned by you (not root). Set to your `id -u` / `id -g`. +PUID=1000 +PGID=1000 diff --git a/docker-compose.yml b/docker-compose.yml index 0f1c1c5..c59668c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -138,6 +138,10 @@ services: image: sparkyui-model-manager:latest container_name: model-manager + # Run as the host user so downloaded models are owned by you, not root. + # Defaults to 1000:1000; override via PUID/PGID in .env if needed. + user: "${PUID:-1000}:${PGID:-1000}" + ports: - "${MODEL_MANAGER_PORT:-8189}:8189"