Fix ai-dock ComfyUI port binding
This commit is contained in:
@@ -26,13 +26,24 @@ spec:
|
|||||||
# Fix permissions mismatch usually happening when mapping host paths
|
# Fix permissions mismatch usually happening when mapping host paths
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
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:
|
containers:
|
||||||
- name: comfyui
|
- name: comfyui
|
||||||
image: ghcr.io/ai-dock/comfyui:latest-cuda
|
image: ghcr.io/ai-dock/comfyui:latest-cuda
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: CLI_ARGS
|
- name: COMFYUI_FLAGS
|
||||||
value: "--listen 0.0.0.0 --port 8188"
|
value: "--listen 0.0.0.0"
|
||||||
|
- name: COMFYUI_PORT_LOCAL
|
||||||
|
value: "8188"
|
||||||
|
- name: COMFYUI_PORT_HOST
|
||||||
|
value: "8189"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8188
|
- containerPort: 8188
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
Reference in New Issue
Block a user