From 15c1396ebbf650c09cc7cbda2097fe8db49af254 Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Mon, 10 Jun 2024 14:37:37 +0800 Subject: [PATCH] Refactor openwebui.yml to add environment variables for domain, port, and Ollama API --- swarm/openwebui.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swarm/openwebui.yml b/swarm/openwebui.yml index da1704a..80f6361 100644 --- a/swarm/openwebui.yml +++ b/swarm/openwebui.yml @@ -5,6 +5,10 @@ networks: services: open-webui: image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main} + environment: + - DOMAIN=${DOMAIN} + - OPEN_WEBUI_PORT=${OPEN_WEBUI_PORT-8080} + - ENABLE_OLLAMA_API=${ENABLE_OLLAMA_API-false} volumes: - /var/data/open-webui:/app/backend/data networks: