mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-24 00:45:58 +00:00
Refactor openwebui.yml to use environment variable for OPEN_WEBUI_PORT
This commit is contained in:
+5
-2
@@ -2,6 +2,9 @@ networks:
|
|||||||
traefik-public:
|
traefik-public:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
open_webui: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
open_webui:
|
open_webui:
|
||||||
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG:-main}
|
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG:-main}
|
||||||
@@ -11,7 +14,7 @@ services:
|
|||||||
- WEBUI_URL=http://localhost:${OPEN_WEBUI_PORT:-8080}
|
- WEBUI_URL=http://localhost:${OPEN_WEBUI_PORT:-8080}
|
||||||
- ENABLE_OLLAMA_API=${ENABLE_OLLAMA_API:-false}
|
- ENABLE_OLLAMA_API=${ENABLE_OLLAMA_API:-false}
|
||||||
volumes:
|
volumes:
|
||||||
- /var/data/open-webui:/app/backend/data
|
- open_webui:/app/backend/data
|
||||||
expose:
|
expose:
|
||||||
- ${OPEN_WEBUI_PORT:-8080}
|
- ${OPEN_WEBUI_PORT:-8080}
|
||||||
networks:
|
networks:
|
||||||
@@ -19,7 +22,7 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.role == manager
|
- node.labels.open_webui.open_webui == true
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.docker.network=traefik-public
|
- traefik.docker.network=traefik-public
|
||||||
|
|||||||
Reference in New Issue
Block a user