stable-diffusion-webui-docker/docker-compose.yml

148 lines
3.8 KiB
YAML
Raw Normal View History

x-base_service: &base_service
stop_signal: SIGKILL
tty: true
2025-07-31 02:12:04 +02:00
restart: unless-stopped
2022-08-27 13:38:12 +02:00
deploy:
resources:
2025-07-07 07:58:25 +02:00
# limits:
# cpus: 8
# memory: 48G
2022-08-27 13:38:12 +02:00
reservations:
2025-07-07 07:58:25 +02:00
# cpus: 4
# memory: 24G
2022-08-27 13:38:12 +02:00
devices:
- driver: nvidia
device_ids: ['0']
2025-07-07 07:58:25 +02:00
capabilities: [compute, utility, gpu]
x-defaults: &defaults
2025-07-31 02:12:04 +02:00
<<: *base_service
ports:
- "${WEBUI_PORT:-7860}:7860"
volumes:
- &v1 ./data:/data
- &v2 ./output:/output
x-auto_service: &auto_service
<<: *defaults
container_name: auto
build: ./services/AUTOMATIC1111
image: sd-auto:latest
name: webui-docker
services:
download:
build: ./services/download/
profiles: ["download"]
volumes:
- *v1
2025-07-31 02:12:04 +02:00
auto:
<<: *auto_service
profiles: ["auto"]
environment:
2022-12-10 12:06:37 +01:00
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
auto-cpu:
2025-07-31 02:12:04 +02:00
<<: *auto_service
profiles: ["auto-cpu"]
deploy: {}
environment:
- CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api
2025-07-31 02:12:04 +02:00
auto-full:
<<: *auto_service
profiles: [ "full" ]
environment:
- CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --no-half-vae --api
2025-08-02 04:28:08 +02:00
auto-rocm:
<<: *auto_service
2025-08-02 04:28:08 +02:00
profiles: ["auto-rocm"]
container_name: auto-rocm
2025-08-02 04:28:08 +02:00
build:
context: ./services/AUTOMATIC1111
dockerfile: ROCM.dockerfile
devices:
- "/dev/kfd"
- "/dev/dri"
deploy: {}
environment:
- CLI_ARGS=--allow-code --medvram --enable-insecure-extension-access --api
comfy: &comfy
<<: *base_service
profiles: ["comfy"]
2025-07-31 02:12:04 +02:00
container_name: comfy
build: ./services/comfy
image: sd-comfy:latest
2025-07-07 07:58:25 +02:00
volumes:
- ./data/models:/opt/comfyui/models
- ./data/config/configs:/opt/comfyui/user/default/
2025-07-07 07:58:25 +02:00
- ./data/config/comfy/custom_nodes:/opt/comfyui/custom_nodes
- ./output/comfy:/opt/comfyui/output
ports:
- "${COMFYUI_PORT:-7861}:7861"
environment:
2025-07-07 07:58:25 +02:00
- COMFYUI_PATH=/opt/comfyui
- COMFYUI_MODEL_PATH=/opt/comfyui/models
- CLI_ARGS=
2025-07-07 07:58:25 +02:00
# - TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1
comfy-cpu:
<<: *comfy
profiles: ["comfy-cpu"]
deploy: {}
2025-07-07 07:58:25 +02:00
ports:
- "${COMFYUI_PORT:-7861}:7861"
environment:
- CLI_ARGS=--cpu
2025-07-07 07:58:25 +02:00
2025-07-31 02:12:04 +02:00
swarmui:
2025-07-07 07:58:25 +02:00
<<: *base_service
2025-07-31 02:12:04 +02:00
profiles: ["swarmui"]
container_name: swarmui
build: ./services/swarmui
image: sd-swarmui:latest
2025-07-07 07:58:25 +02:00
ports:
2025-07-31 02:12:04 +02:00
- "${SWARMUI_PORT:-7801}:7801"
volumes:
- ./data/swarmui:/SwarmUI/Data
- ./data/models:/SwarmUI/Models
2025-08-02 04:28:08 +02:00
- ./data/embeddings:/SwarmUI/Models/Embeddings
# comfyui
- ./data/config/comfy/custom_nodes:/SwarmUI/dlbackend/ComfyUI/custom_nodes
# - ./data/models/configs:/SwarmUI/dlbackend/ComfyUI/user/default/ # TODO rm old
- ./data/config/configs:/SwarmUI/dlbackend/ComfyUI/user/default/
# output
2025-07-31 02:12:04 +02:00
- ./output/swarmui:/SwarmUI/Output
- ./output/swarmui/comfy:/SwarmUI/dlbackend/ComfyUI/output
environment:
- COMFYUI_PATH=/opt/comfyui
- COMFYUI_MODEL_PATH=/opt/comfyui/models
2025-08-02 04:28:08 +02:00
reforge: &reforge
<<: *base_service
2025-08-02 04:28:08 +02:00
profiles: ["reforge"]
build: ./services/reforge
image: sd-reforge:latest
2025-08-02 04:28:08 +02:00
environment:
- CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api --pin-shared-memory --cuda-malloc --cuda-stream
forge: &forge
<<: *base_service
profiles: ["forge"]
build: ./services/forge
image: sd-forge:latest
2025-08-02 04:28:08 +02:00
environment:
- CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api --pin-shared-memory --cuda-malloc --cuda-stream
fooocus: &fooocus
<<: *base_service
profiles: ["fooocus"]
build: ./services/fooocus/
image: sd-fooocus:latest
2025-08-02 04:28:08 +02:00
environment:
- CLI_ARGS=