- Ubuntu 22.04 LTS
- CUDA 11.8
- Python 3.10.12
- Stable Diffusion WebUI Forge
- Torch 2.1.2
- xformers 0.0.23.post1
- Jupyter Lab
- runpodctl
- OhMyRunPod
- RunPod File Uploader
- croc
- rclone
- CivitAI Downloader
This image is designed to work on RunPod. You can use my custom RunPod template to launch it on RunPod.
Note
You will need to edit the docker-bake.hcl
file and update USERNAME
,
and RELEASE
. You can obviously edit the other values too, but these
are the most important ones.
# Clone the repo
git clone https://github.com/ashleykleynhans/forge-docker.git
# Log in to Docker Hub
docker login
# Build the image, tag the image, and push the image to Docker Hub
cd forge-docker
docker buildx bake -f docker-bake.hcl --push
docker run -d \
--gpus all \
-v /workspace \
-p 3000:3001 \
-p 8888:8888 \
-p 2999:2999 \
-e VENV_PATH="/workspace/venvs/stable-diffusion-webui-forge" \
ashleykza/forge:latest
You can obviously substitute the image name and tag with your own.
Connect Port | Internal Port | Description |
---|---|---|
3000 | 3001 | Forge |
8888 | 8888 | Jupyter Lab |
2999 | 2999 | RunPod File Uploader |
Variable | Description | Default |
---|---|---|
VENV_PATH | Set the path for the Python venv for the app | /workspace/venvs/stable-diffusion-webui-forge |
JUPYTER_LAB_PASSWORD | Set a password for Jupyter lab | not set - no password |
DISABLE_AUTOLAUNCH | Disable Forge from launching automatically | (not set) |
Forge creates a log file, and you can tail the log instead of killing the service to view the logs.
Application | Log file |
---|---|
Forge | /workspace/logs/forge.log |
For example:
tail -f /workspace/logs/forge.log
Pull requests and issues on GitHub are welcome. Bug fixes and new features are encouraged.