Cannot configure HOST #2038

Closed
opened 2025-11-11 14:59:11 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @zenoverflow on GitHub (Sep 9, 2024).

To get access to an ollama instance running on 127.0.0.1, the container needs to be run with --network=host.

That works, but now I have a server listening on 0.0.0.0, which is not okay on this system for dumb security reasons I cannot disclose.

I looked through the docs and there is no HOST env variable, only PORT. Setting UVICORN_HOST doesn't work either.

Is there no way to configure the host or am I missing something?

PS: Ollama is used by other software on the system, so a workaround by using the docker compose variant with an internal ollama service is a no-go.

Originally created by @zenoverflow on GitHub (Sep 9, 2024). To get access to an ollama instance running on `127.0.0.1`, the container needs to be run with `--network=host`. That works, but now I have a server listening on `0.0.0.0`, which is not okay on this system for dumb security reasons I cannot disclose. I looked through the docs and there is no `HOST` env variable, only `PORT`. Setting `UVICORN_HOST` doesn't work either. Is there no way to configure the host or am I missing something? PS: Ollama is used by other software on the system, so a workaround by using the docker compose variant with an internal ollama service is a no-go.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2038