feat: add open-webui
This commit is contained in:
4
src/open-webui/.env.example
Normal file
4
src/open-webui/.env.example
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
OPENAI_API_BASE_URL=
|
||||||
|
OPENAI_API_KEY=
|
||||||
|
ENABLE_OLLAMA_API=
|
||||||
|
WEBUI_URL=
|
||||||
3
src/open-webui/README.md
Normal file
3
src/open-webui/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Open WebUI
|
||||||
|
|
||||||
|
Quick start: <https://docs.openwebui.com/getting-started/quick-start>.
|
||||||
31
src/open-webui/docker-compose.yml
Normal file
31
src/open-webui/docker-compose.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
x-default: &default
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- &localtime /etc/localtime:/etc/localtime:ro
|
||||||
|
- &timezone /etc/timezone:/etc/timezone:ro
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: 100m
|
||||||
|
|
||||||
|
services:
|
||||||
|
openwebui:
|
||||||
|
<<: *default
|
||||||
|
image: ghcr.io/open-webui/open-webui:${OPEN_WEBUI_VERSION:-main}
|
||||||
|
ports:
|
||||||
|
- "${OPEN_WEBUI_PORT:-8080}:8080"
|
||||||
|
volumes:
|
||||||
|
- open-webui:/app/backend/data
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '1'
|
||||||
|
memory: 512M
|
||||||
|
reservations:
|
||||||
|
cpus: '0.1'
|
||||||
|
memory: 128M
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
open-webui:
|
||||||
Reference in New Issue
Block a user