feat: add open-webui

This commit is contained in:
Sun-ZhenXing
2025-09-23 09:51:22 +08:00
parent 705129da04
commit e627a01398
3 changed files with 38 additions and 0 deletions

View 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: