From e9a5b1e9f1685f8995bd82dc070cfdd31ce47bb5 Mon Sep 17 00:00:00 2001 From: Dmitry Sychev Date: Sat, 25 Nov 2023 22:00:32 -0500 Subject: [PATCH] Adding back deleted docker-compose.yml --- docker-compose.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..fb3bcf291 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3.9' + +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: