📝 (docker-compose.yml): mount .comfyui-user for persistence of user settings and workflows
20 lines
655 B
YAML
20 lines
655 B
YAML
services:
|
|
comfyui:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- '8188:8188'
|
|
volumes:
|
|
# Mount your custom node directory
|
|
- .:/workspace/ComfyUI/custom_nodes/ComfyUI-SwissArmyKnife
|
|
# Mount user settings and workflows for persistence
|
|
- ./.comfyui-user:/workspace/ComfyUI/user
|
|
environment:
|
|
# Pass through your Gemini API key
|
|
- GEMINI_API_KEY=${GEMINI_API_KEY}
|
|
working_dir: /workspace/ComfyUI
|
|
command: python main.py --listen 0.0.0.0 --port 8188 --cpu
|
|
stdin_open: true
|
|
tty: true
|