From 87d94b11f8fbcf479db4e48114a5011e90676356 Mon Sep 17 00:00:00 2001 From: host Date: Sun, 1 Nov 2026 23:58:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stacks/open-webui/compose.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 stacks/open-webui/compose.yaml diff --git a/stacks/open-webui/compose.yaml b/stacks/open-webui/compose.yaml new file mode 100644 index 0000000..82bd740 --- /dev/null +++ b/stacks/open-webui/compose.yaml @@ -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: {}