mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
d4ece82078
(cherry picked from commit fab5765fe4
)
Co-authored-by: Sérgio <smaisidoro@gmail.com>
29 lines
529 B
YAML
29 lines
529 B
YAML
version: '3.3'
|
|
|
|
services:
|
|
stable-diffusion:
|
|
container_name: sd-webui
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
env_file: .env_docker
|
|
environment:
|
|
PIP_EXISTS_ACTION: w
|
|
volumes:
|
|
- .:/sd
|
|
- ./outputs:/sd/outputs
|
|
- ./model_cache:/sd/model_cache
|
|
- conda_env:/opt/conda
|
|
- root_profile:/root
|
|
ports:
|
|
- '7860:7860'
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- capabilities: [ gpu ]
|
|
|
|
volumes:
|
|
conda_env:
|
|
root_profile:
|