Добавлен файл
This commit is contained in:
1 parent
a8349176fc
commit
87d94b11f8
1 file changed
+33
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
open-webui:
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
container_name: open-webui
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:8080 # хост:порт_контейнера (8080 — внутренний порт Open WebUI)
|
||||
environment:
|
||||
- OLLAMA_BASE_URL=http://host.docker.internal:11434 # Ollama на TrueNAS (порты пробрасываются на хост)
|
||||
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY} # значение в .env проекта (не коммитить)
|
||||
- ENABLE_OLLAMA_API=true
|
||||
# Отключаем OpenAI API
|
||||
- ENABLE_OPENAI_API=false
|
||||
volumes:
|
||||
- /mnt/ssd/apps/openwebui:/app/backend/data # БД, пользователи, настройки
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2"
|
||||
memory: 4g
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- -f
|
||||
- http://localhost:8080/health
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
networks: {}
|
||||
Reference in new issue
Block a user