Refactor openwebui.yml to use environment variables for domain, port, and Ollama API

This commit is contained in:
2024-06-10 15:07:36 +08:00
parent 3cbed2908a
commit 89f6fb35b8
+2 -2
View File
@@ -8,8 +8,8 @@ services:
environment:
- DOMAIN=${DOMAIN}
- OPEN_WEBUI_PORT=${OPEN_WEBUI_PORT:-8080}
- WEBUI_URL=http://localhost:${OPEN_WEBUI_PORT}
- ENABLE_OLLAMA_API=${ENABLE_OLLAMA_API-false}
- WEBUI_URL=http://localhost:${OPEN_WEBUI_PORT:-8080}
- ENABLE_OLLAMA_API=${ENABLE_OLLAMA_API:-false}
volumes:
- /var/data/open-webui:/app/backend/data
networks: