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: {}