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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
HOSTenv variable, onlyPORT. SettingUVICORN_HOSTdoesn'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.