services: aivideo: build: . working_dir: /app depends_on: - comfyui environment: - OPENAI_API_KEY=${OPENAI_API_KEY:-} - OPENAI_BASE_URL=${OPENAI_BASE_URL:-} - PORT=3000 volumes: - ./:/app # Keep dependencies inside container volume to avoid host FS read issues on macOS. - /app/server/node_modules ports: - "3000:3000" # Default: use domestic mirror to speed up pulls in CN networks. # Override with COMFYUI_IMAGE to use another registry/image. comfyui: # CPU-friendly default image for non-NVIDIA development machines. # Override with COMFYUI_IMAGE to switch back to a GPU image. image: ${COMFYUI_IMAGE:-docker.1ms.run/ardenius/comfyui-cpu:latest} # Force bind to all interfaces so other containers (and `check_comfy`) can reach it. # Works with the default ardenius/comfyui-cpu image layout (/ComfyUI-cpu/main.py). command: ${COMFYUI_COMMAND:-python3 /ComfyUI-cpu/main.py --cpu --cpu-vae --listen 0.0.0.0 --port 8188} ports: - "8188:8188"