Parameterize image, name, restart, and GPU

This commit is contained in:
2026-07-18 08:58:19 -04:00
parent a632cc1054
commit 15eb203b2f
2 changed files with 40 additions and 16 deletions
+4 -4
View File
@@ -2,9 +2,9 @@ services:
comfyui:
build:
context: .
image: localhost/comfyui:latest
restart: unless-stopped
container_name: comfyui
image: ${IMAGE:-localhost/comfyui}:${VERSION:-latest}
container_name: ${NAME:-comfyui}
restart: ${RESTART:-unless-stopped}
ports:
- "${ENDPOINT:-127.0.0.1:8188}:8188"
volumes:
@@ -15,4 +15,4 @@ services:
- ${DATA:-./data}/custom_nodes:/app/custom_nodes
- ${DATA:-./data}/triton-cache:/root/.triton
devices:
- nvidia.com/gpu=all
- ${GPU:-nvidia.com/gpu=all}