Fix ai-dock ComfyUI port binding
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 7s

This commit is contained in:
2026-03-07 21:46:16 +00:00
parent 4995d482c4
commit ff7dccfe76

View File

@@ -26,13 +26,24 @@ spec:
# Fix permissions mismatch usually happening when mapping host paths
securityContext:
runAsUser: 0
initContainers:
- name: create-data-dir
image: busybox
command: ["sh", "-c", "mkdir -p /host.data && chown -R 1000:1000 /host.data"]
volumeMounts:
- name: data
mountPath: /host.data
containers:
- name: comfyui
image: ghcr.io/ai-dock/comfyui:latest-cuda
imagePullPolicy: IfNotPresent
env:
- name: CLI_ARGS
value: "--listen 0.0.0.0 --port 8188"
- name: COMFYUI_FLAGS
value: "--listen 0.0.0.0"
- name: COMFYUI_PORT_LOCAL
value: "8188"
- name: COMFYUI_PORT_HOST
value: "8189"
ports:
- containerPort: 8188
name: http