Stable Diffusion WebUI and KohyaSS, ComfyUI, InvokeAI, Fooocus, and more Generative AI Applications on Docker
You need NVIDIA GPU and CUDA 12.4, Docker and NVIDIA Container toolkit, if you are using Windows 10/11, you also need enable WSL2. it is recommanded on Amazon Web Services, Microsoft Azure, Google Cloud Platform.
git clone https://github.com/bean980310/stable-diffusion-docker-project.git
First, run the run_first.ipynb on Jupyter Notebook(if not installed cuda, cudnn, docker, and NVIDIA Container toolkit.) and then run the download.ipynb on Jupyter Notebook.
And you must put models in directory stable-diffusion-models/models.
cd <your_path_of_dir>/stable-diffusion-docker-project docker compose -f docker-compose.pull.yml up -d <service_name>
Service list | Port(Published) |
---|---|
stable-diffusion-webui | 3010:7860 |
kohya_ss | 3020:7860 |
comfyui | 3030:8188 |
invokeai | 9090:9090 |
fooocus | 3040:7860 |
stable-diffusion-webui-forge | 3050:7860 |
sdnext | 3060:7860 |
open-webui | 3000:8080 |
easy-diffusion | 9000:9000 |
swarmui | 7801:7801 |
facefusion | 3070:7860 |
omost | 3080:8080 |
stable-audio-tools | 3090:7860 |
svd-webui(under construction) | coming soon |
example:
cd ~/stable-diffusion-docker-project docker compose -f docker-compose.pull.yml up -d stable-diffusion-webui
How to install extension of stable-diffusion-webui:
cd <your_path_of_dir>/stable-diffusion-docker-project/workspace/stable-diffusion-webui/extensions git clone <stable-diffusion-webui_extension>
How to install ComfyUI Manager:
cd <your_path_of_dir>/stable-diffusion-docker-project/workspace/ComfyUI/custom_nodes git clone https://github.com/ltdrdata/ComfyUI-Manager.git
docker compose -f docker-compose.pull.yml up -d
or
docker compose -f docker-compose.pull.yml up -d <service_name>
There are no models linked
There are no datasets linked
There are no datasets linked
There are no models linked