https://github.com/jamesbrink/docker-fooocus
Docker image for Fooocus (Stable Diffusion)
https://github.com/jamesbrink/docker-fooocus
docker fooocus stable-diffusion stable-diffusion-webui
Last synced: 11 months ago
JSON representation
Docker image for Fooocus (Stable Diffusion)
- Host: GitHub
- URL: https://github.com/jamesbrink/docker-fooocus
- Owner: jamesbrink
- License: mit
- Created: 2024-02-27T23:21:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-29T18:40:18.000Z (about 1 year ago)
- Last Synced: 2025-01-26T15:15:41.229Z (about 1 year ago)
- Topics: docker, fooocus, stable-diffusion, stable-diffusion-webui
- Language: Dockerfile
- Homepage: https://github.com/lllyasviel/Fooocus
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker image for Fooocus (Stable Diffusion)
## About
Simple docker image for the [Fooocus web interface][Foocus].
## Usage
Build and run the container container:
```shell
make
docker run -i -t --gpus all -p 7865:7865 -v ./models:/fooocus/models -v ./outputs:/fooocus/outputs jamesbrink/fooocus
```
If you want to share models between Fooocus and tools like ComfyUI, you can map the volumes like so:
```shell
mkdir -p ~/AI/Models/StableDiffusion/
mkdir -p ~/AI/Output
```
Then simply run the container with the newly mapped volumes:
```shell
docker run -d --gpus all --network=host -v ~/AI/Models/StableDiffusion/:/fooocus/models -v ~/AI/Output:/fooocus/output --name fooocus jamesbrink/fooocus
```
Running with CPU model only:
```shell
docker run -d --network=host -v ~/AI/Models/StableDiffusion/:/fooocus/models -v ~/AI/Output:/fooocus/output --restart=always --name fooocus jamesbrink/fooocus --listen --always-cpu --preset lightning
```
[Foocus]: https://github.com/lllyasviel/Fooocus