stable-diffusion-webui/docker-compose.yml
Thomas Mello c26cd01498
Publish Streamlit ports (#1102)
(cherry picked from commit 833a91047d)

Co-authored-by: Charlie <outlookhazy@users.noreply.github.com>
2022-09-14 01:58:38 +03:00

30 lines
549 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'
- '8501:8501'
deploy:
resources:
reservations:
devices:
- capabilities: [ gpu ]
volumes:
conda_env:
root_profile: