Expose build args to container which allow the web service
to run as given uid:gid.
By default, this behavior is "off". Building via docker compose still
defaults to root:root on everything. Unless these args are explicitly
set, no users should notice a difference.
Build arguments are also exposed as Docker environment variables, so they can
be freely referenced in the `entrypoint.sh`
Output files will be owned by PUID and PGID, so if set, no more root:root
images (unless desired).
New arguments:
- ARG PUID=0
- ARG PGID=0
- ARG USER_HOME=/root
New environment variable:
- RSYNC_FLAGS
- NFS share doesn't like `-a` changing every bit on a directory
Example docker-compose.override.yaml using these flags
```
version: '3.9'
services:
auto:
environment:
RSYNC_FLAGS: -vrlgotO
build:
args:
USER_HOME: /opt/stablediffusion
PUID: 1000
PGID: 1002
volumes:
- /media/data:/data
- /tmp:/output
download:
volumes:
- /media/data:/data
```
|
||
|---|---|---|
| .devscripts | ||
| .github | ||
| .vscode | ||
| data | ||
| output | ||
| services | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| docker-compose.yml | ||
| LICENSE | ||
| README.md | ||
Stable Diffusion WebUI Docker
Run Stable Diffusion on your machine with a nice UI without any hassle!
Setup & Usage
Visit the wiki for Setup and Usage instructions, checkout the FAQ page if you face any problems, or create a new issue!
Features
This repository provides multiple UIs for you to play around with stable diffusion:
AUTOMATIC1111
Full feature list here, Screenshots:
| Text to image | Image to image | Extras |
|---|---|---|
![]() |
![]() |
![]() |
InvokeAI
Full feature list here, Screenshots:
| Text to image | Image to image | Extras |
|---|---|---|
![]() |
![]() |
![]() |
ComfyUI
Full feature list here, Screenshot:
| Workflow |
|---|
![]() |
Contributing
Contributions are welcome! Create a discussion first of what the problem is and what you want to contribute (before you implement anything)
Disclaimer
The authors of this project are not responsible for any content generated using this interface.
This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.
Thanks
Special thanks to everyone behind these awesome projects, without them, none of this would have been possible:
- AUTOMATIC1111/stable-diffusion-webui
- InvokeAI
- ComfyUI
- CompVis/stable-diffusion
- Sygil-webui
- and many many more.






