2025-05-31 20:06:24 +02:00
|
|
|
name: stable-diffusion-webui-docker
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
download:
|
|
|
|
|
build: ./services/download/
|
|
|
|
|
profiles: ["download"]
|
2025-04-28 19:42:47 +02:00
|
|
|
user: ${PUID:-1000}:${PGID:-1000}
|
|
|
|
|
environment:
|
|
|
|
|
- PUID=${PUID:-1000}
|
|
|
|
|
- PGID=${PGID:-1000}
|
2025-05-31 20:06:24 +02:00
|
|
|
volumes:
|
|
|
|
|
- ./data:/data
|
|
|
|
|
|
|
|
|
|
auto:
|
|
|
|
|
profiles: ["auto"]
|
|
|
|
|
build: ./services/AUTOMATIC1111
|
|
|
|
|
image: auto:v1.10.1
|
|
|
|
|
user: ${PUID:-1000}:${PGID:-1000}
|
|
|
|
|
environment:
|
|
|
|
|
- PUID=${PUID:-1000}
|
|
|
|
|
- PGID=${PGID:-1000}
|
|
|
|
|
- CLI_ARGS=${AUTO_CLI_ARGS}
|
2022-08-27 13:38:12 +02:00
|
|
|
ports:
|
2025-05-31 20:06:24 +02:00
|
|
|
- "7860:7860" # hardcoded in Dockerfile for now
|
2022-08-27 13:38:12 +02:00
|
|
|
volumes:
|
2025-05-31 20:06:24 +02:00
|
|
|
- ./data:/data
|
|
|
|
|
- ./output:/output
|
2023-06-24 10:06:30 +02:00
|
|
|
stop_signal: SIGKILL
|
|
|
|
|
tty: true
|
2022-08-27 13:38:12 +02:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
2025-05-31 20:06:24 +02:00
|
|
|
- driver: nvidia
|
|
|
|
|
device_ids: ['0']
|
|
|
|
|
capabilities: [compute, utility]
|
2022-09-11 20:18:50 +02:00
|
|
|
|
2025-05-31 20:06:24 +02:00
|
|
|
comfy:
|
|
|
|
|
profiles: ["comfy"]
|
|
|
|
|
build: ./services/comfy/
|
|
|
|
|
image: comfy:v0.3.39
|
2025-04-29 00:06:42 +02:00
|
|
|
user: ${PUID:-1000}:${PGID:-1000}
|
|
|
|
|
environment:
|
|
|
|
|
- PUID=${PUID:-1000}
|
|
|
|
|
- PGID=${PGID:-1000}
|
2025-05-31 20:06:24 +02:00
|
|
|
- CLI_ARGS=${COMFY_CLI_ARGS}
|
|
|
|
|
ports:
|
|
|
|
|
- "8188:8188" # hardcoded in Dockerfile for now
|
2022-09-11 20:18:50 +02:00
|
|
|
volumes:
|
2025-05-31 20:06:24 +02:00
|
|
|
# - ./comfy/extra_model_paths.yaml:/extra_model_paths.yaml:ro,cached
|
|
|
|
|
- ./data:/data:delegated
|
|
|
|
|
- ./output:/output
|
|
|
|
|
stop_signal: SIGKILL
|
|
|
|
|
tty: true
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
|
|
|
|
- driver: nvidia
|
|
|
|
|
device_ids: ['0']
|
|
|
|
|
capabilities: [compute, utility]
|
2022-09-11 20:18:50 +02:00
|
|
|
|
2025-05-31 20:06:24 +02:00
|
|
|
# Version auto1111, use same or similar base images
|
|
|
|
|
# Fix Mappings for models `/data/models` and `data/config/comfy/models` the later is created by ComfyManager
|
|
|
|
|
# Run everything in an venv
|
|
|
|
|
# IPAdapterPlus
|
|
|
|
|
# ONNX
|
|
|
|
|
# comfyui-manager by default
|
2023-04-21 21:34:17 +02:00
|
|
|
|
2025-05-31 20:06:24 +02:00
|
|
|
# Model/Embeddings
|
|
|
|
|
# /data/config/comfy
|
|
|
|
|
# /data/config/auto
|
|
|
|
|
# /data/config/shared
|
|
|
|
|
# Also move /output to /data/output
|