Add Open WebUI swarm service

This commit is contained in:
2026-06-10 13:14:18 -04:00
parent aa74ef0a36
commit 2d0e197108
2 changed files with 34 additions and 0 deletions

View File

@@ -47,11 +47,37 @@ services:
networks:
- dokploy-network
open-webui:
image: ${OPEN_WEBUI_IMAGE:-ghcr.io/open-webui/open-webui:main}
ports:
- target: 8080
published: ${OPEN_WEBUI_PORT:-3000}
protocol: tcp
mode: host
environment:
WEBUI_NAME: ${OPEN_WEBUI_NAME:-Swarm AI}
WEBUI_SECRET_KEY: ${OPEN_WEBUI_SECRET_KEY:?set OPEN_WEBUI_SECRET_KEY}
WEBUI_URL: ${OPEN_WEBUI_URL:-}
ENABLE_SIGNUP: ${OPEN_WEBUI_ENABLE_SIGNUP:-true}
volumes:
- open-webui-data:/app/backend/data
deploy:
replicas: 1
placement:
constraints:
- node.hostname == ${OPEN_WEBUI_NODE_HOSTNAME:-tpi-n2}
restart_policy:
condition: on-failure
networks:
- dokploy-network
volumes:
whisper-models:
name: whisper-models
rkllm-root:
name: rkllm-root
open-webui-data:
name: open-webui-data
networks:
dokploy-network: