Update compose.yml

This commit is contained in:
Karol 2024-10-21 23:26:13 +02:00
parent 0933fa3d0e
commit ffda0b1bb7

View File

@ -2,6 +2,7 @@
x-comfyui-common: &comfyui-common x-comfyui-common: &comfyui-common
build: build:
context: . context: .
image: comfyui
ports: ports:
- "${PORT:-8188}:8188" - "${PORT:-8188}:8188"
volumes: volumes:
@ -11,13 +12,13 @@ x-comfyui-common: &comfyui-common
# ComfyUI profiles # ComfyUI profiles
services: services:
cpu: comfyui-cpu:
<<: *comfyui-common <<: *comfyui-common
command: > command: >
python main.py --listen=${LISTEN_IP:-0.0.0.0} --cpu python main.py --listen=${LISTEN_IP:-0.0.0.0} --cpu
profiles: profiles:
- cpu - cpu
cuda: comfyui-cuda:
<<: *comfyui-common <<: *comfyui-common
command: > command: >
python main.py --listen=${LISTEN_IP:-0.0.0.0} python main.py --listen=${LISTEN_IP:-0.0.0.0}