Simple ready-to-run docker containers for Stable Diffusion Web and Comfy UI.
Make sure you have Docker installed and configured on your system. Also, you need an Nvidia graphics card. This container only works with an Nvidia Card.
- Make sure Docker is installed.
- Install the CUDA drivers, you can find instructions on how to do that here: https://developer.nvidia.com/cuda-downloads
- Install the Nvidia Container Toolkit: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/
I highly recommend using Docker Compose.
You can start one of the following services like so:
# Comfy UI
docker compose up comfy-ui
# Stable Diffusion Web
docker compose up stable-diffusion-web
If you do not provide a service name, both will start.
This will start Comfy UI on port 8188 and save all data tp ./data. It will also enable live previews.
docker run \
-v ./data:/data:rw \
-e "LAUNCH_ARGS=--preview-method auto" \
-p 8188:8188/tcp \
--gpus all \
ghcr.io/parzival-space/stable-diffusion:comfy-ui
This will start Stable Diffusion Web on port 7680 and save all data tp ./data. It will also enable extension support.
docker run \
-v ./data:/data:rw \
-p 7680:7680/tcp \
--gpus all \
-e "LAUNCH_ARGS=--xformers --update-check --enable-insecure-extension-access" \
ghcr.io/parzival-space/stable-diffusion:stable-diffusion-web
stable-diffusion-webui by AUTOMATIC1111 is licensed under the GNU Affero General Public License v3.0.
Comfy UI by comfyanonymous is licensed under the GNU General Public License v3.0.
This project is licensed under the GNU General Public License v3.0.
For more information, please refer to the LICENSE
file.