Merge pull request #356 from tranhd95/main
Some checks failed
Create and publish Docker images with specific build args / build-main-image (push) Has been cancelled
Create and publish Docker images with specific build args / build-cuda-image (push) Has been cancelled
Create and publish Docker images with specific build args / build-minimum-image (push) Has been cancelled
Create and publish Docker images with specific build args / merge-main-images (push) Has been cancelled
Create and publish Docker images with specific build args / merge-cuda-images (push) Has been cancelled
Create and publish Docker images with specific build args / merge-minimum-images (push) Has been cancelled

Add Docker Compose setup guide.
This commit is contained in:
Tim Jaeryang Baek 2025-04-14 08:57:00 -07:00 committed by GitHub
commit 7f9f957dc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 60 additions and 0 deletions

View File

@ -42,6 +42,8 @@ Integrating Pipelines with any OpenAI API-compatible UI client is simple. Launch
> [!WARNING] > [!WARNING]
> Pipelines are a plugin system with arbitrary code execution — **don't fetch random pipelines from sources you don't trust**. > Pipelines are a plugin system with arbitrary code execution — **don't fetch random pipelines from sources you don't trust**.
### Docker
For a streamlined setup using Docker: For a streamlined setup using Docker:
1. **Run the Pipelines container:** 1. **Run the Pipelines container:**
@ -78,6 +80,45 @@ Alternatively, you can directly install pipelines from the admin settings by cop
That's it! You're now ready to build customizable AI integrations effortlessly with Pipelines. Enjoy! That's it! You're now ready to build customizable AI integrations effortlessly with Pipelines. Enjoy!
### Docker Compose together with Open WebUI
Using [Docker Compose](https://docs.docker.com/compose/) simplifies the management of multi-container Docker applications.
Here is an example configuration file `docker-compose.yaml` for setting up Open WebUI together with Pipelines using Docker Compose:
```yaml
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
pipelines:
image: ghcr.io/open-webui/pipelines:main
volumes:
- pipelines:/app/pipelines
restart: always
environment:
- PIPELINES_API_KEY=0p3n-w3bu!
volumes:
open-webui: {}
pipelines: {}
```
To start your services, run the following command:
```
docker compose up -d
```
You can then use `http://pipelines:9099` (the name is the same as the service's name defined in `docker-compose.yaml`) as an API URL to connect to Open WebUI.
> [!NOTE]
> The `pipelines` service is accessible only by `openwebui` Docker service and thus provide additional layer of security.
## 📦 Installation and Setup ## 📦 Installation and Setup
Get started with Pipelines in a few easy steps: Get started with Pipelines in a few easy steps:

19
docker-compose.yaml Normal file
View File

@ -0,0 +1,19 @@
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
pipelines:
image: ghcr.io/open-webui/pipelines:main
volumes:
- pipelines:/app/pipelines
restart: always
environment:
- PIPELINES_API_KEY=0p3n-w3bu!
volumes:
open-webui: {}
pipelines: {}