From e627a01398fa5e59c839df5026e59f67a5204357 Mon Sep 17 00:00:00 2001 From: Sun-ZhenXing <1006925066@qq.com> Date: Tue, 23 Sep 2025 09:51:22 +0800 Subject: [PATCH] feat: add open-webui --- src/open-webui/.env.example | 4 ++++ src/open-webui/README.md | 3 +++ src/open-webui/docker-compose.yml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 src/open-webui/.env.example create mode 100644 src/open-webui/README.md create mode 100644 src/open-webui/docker-compose.yml diff --git a/src/open-webui/.env.example b/src/open-webui/.env.example new file mode 100644 index 0000000..1c66f94 --- /dev/null +++ b/src/open-webui/.env.example @@ -0,0 +1,4 @@ +OPENAI_API_BASE_URL= +OPENAI_API_KEY= +ENABLE_OLLAMA_API= +WEBUI_URL= diff --git a/src/open-webui/README.md b/src/open-webui/README.md new file mode 100644 index 0000000..56e4741 --- /dev/null +++ b/src/open-webui/README.md @@ -0,0 +1,3 @@ +# Open WebUI + +Quick start: . diff --git a/src/open-webui/docker-compose.yml b/src/open-webui/docker-compose.yml new file mode 100644 index 0000000..4413cc8 --- /dev/null +++ b/src/open-webui/docker-compose.yml @@ -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: