llm, ensure open-webui can see ollama.
This commit is contained in:
@@ -397,7 +397,8 @@
|
|||||||
--name open-webui \
|
--name open-webui \
|
||||||
-v open-webui:/app/backend/data \
|
-v open-webui:/app/backend/data \
|
||||||
--network=host -e PORT={{ open_webui_port }} \
|
--network=host -e PORT={{ open_webui_port }} \
|
||||||
-e OLLAMA_BASE_URL=http://localhost:11434 \
|
--add-host=host.docker.internal:host-gateway \
|
||||||
|
-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
|
||||||
{{ ("-e HF_TOKEN=" ~ hf_token) if hf_token else '' }} \
|
{{ ("-e HF_TOKEN=" ~ hf_token) if hf_token else '' }} \
|
||||||
-e WEBUI_SECRET_KEY={{ open_webui_key }} \
|
-e WEBUI_SECRET_KEY={{ open_webui_key }} \
|
||||||
ghcr.io/open-webui/open-webui:main
|
ghcr.io/open-webui/open-webui:main
|
||||||
@@ -406,8 +407,10 @@
|
|||||||
# exec curl 0.0.0.0:8080/health gave a successful response.
|
# exec curl 0.0.0.0:8080/health gave a successful response.
|
||||||
# The environment was not accessible on the host though.
|
# The environment was not accessible on the host though.
|
||||||
#-p {{ open_webui_port }}:8080 \
|
#-p {{ open_webui_port }}:8080 \
|
||||||
#--add-host=host.docker.internal:host-gateway \
|
# The host.docker.internal params are still required, even with
|
||||||
#-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
|
# giving access to the host system and trying this:
|
||||||
|
#-e OLLAMA_BASE_URL=http://localhost:11434 \
|
||||||
|
# Although I did not try it with 0.0.0.0, maybe that'd work.
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Script | Finish
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Script | Finish
|
||||||
|
|||||||
Reference in New Issue
Block a user