.env file and streamline user/group settings
This commit refactors the `docker-compose.yml` and `Dockerfile` to simplify the management of environment variables and user/group configurations. The following changes were made: 1. **Environment Variables via `.env` File:** - Added `env_file: .env` in the base service configuration within `docker-compose.yml`. This allows for centralized management of environment variables, making it easier to configure different environments without modifying Docker files directly. 2. **User/Group Configuration Simplification:** - Removed hardcoded user and group settings (`USE_UID`, `USE_GID`, `USE_USER`, `USE_GROUP`) from the `docker-compose.yml` file. - Updated the `Dockerfile` to use default values of `0` for `USE_UID` and `USE_GID`, and `root` for `USE_USER` and `USE_GROUP`. This aligns with common practices where root is often used in containerized environments unless specified otherwise. 3. **Conditional Dependency Handling:** - Introduced conditional logic to enable dependencies like Krita based on the value of `USE_KRITA`. - Simplified the environment variable assignments within the Dockerfile, ensuring that only necessary variables are set. 4. **Entrypoint Script Enhancements:** - Added a feature in the `entrypoint.sh` script to update custom nodes by pulling the latest changes from their respective repositories if `UPDATE_CUSTOM_NODES` is set to `true`. These changes improve the maintainability and flexibility of the Docker setup, making it easier to adapt to different deployment scenarios.
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 |
|---|---|---|
![]() |
![]() |
![]() |
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.



