Self Denial aa03ba02ac refactor: Simplify Docker configuration by using .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.
2024-11-18 00:23:30 -07:00
2023-06-24 10:06:30 +02:00
2024-06-23 11:16:21 +02:00
2022-09-03 06:59:16 +02:00
2023-06-24 10:06:30 +02:00
2022-08-27 12:38:12 +01:00
2022-09-03 06:59:16 +02:00
2022-09-03 06:59:16 +02:00
2022-12-04 11:00:28 +01:00
2024-06-23 11:16:21 +02:00

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:

Description
Easy Docker setup for Stable Diffusion with user-friendly UI
Readme 2.3 MiB
Languages
Shell 50.8%
Dockerfile 30.9%
Python 18.3%