This guide will walk you through setting up and running the Stable Diffusion WebUI Forge using Docker.
First, create a directory for the project and clone the repository.
mkdir stable-diffusion-webui-forge
cd stable-diffusion-webui-forge
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git .
git checkout db6448d
In the project directory, create a docker-compose.yml file with the following content:
services:
stable-diffusion-webui:
runtime: nvidia # Specifies that the container will use the GPU
image: r0dr1g0m/forge-webui
ports:
- "7860:7860" # Maps port 7860 of the container to port 7860 on the host
environment:
- NVIDIA_VISIBLE_DEVICES=all # Makes all GPUs visible inside the container
volumes:
- ./:/stable-diffusion-webui # Maps the current directory to /stable-diffusion-webui in the container
- home:/root # Maps the named volume "home" to the /root directory in the container
command: python3 launch.py --listen # Command to run when the container starts
volumes:
home: # Defines a named volume called "home"
Run the following command to start the container:
docker compose up -d
This command will download the necessary images, set up the container, and run the Stable Diffusion WebUI Forge.
Once the container is up and running, you can access the Stable Diffusion WebUI by navigating to:
http://localhost:7860
For more details on how to obtain the model and other advanced configurations, please visit the official Stable Diffusion WebUI Forge repository.
Content type
Image
Digest
sha256:0112975d4…
Size
8.6 GB
Last updated
about 2 years ago
docker pull r0dr1g0m/forge-webui