- Make sure Ollama is listening on all interfaces (
0.0.0.0
, or at least the docker network). - Add the following to the
.env
file (create one if it doesn't exist) in the root of the project:
OLLAMA_HOST=host.docker.internal:11434
Warning
Some linux users reported that this solution requires docker desktop to be installed. Please report back if that's the case for you. I don't have this issue on NixOS or my Ubuntu 22.04 test box.
Try the above and tell me if it worked, I will update these docs.
- Make sure your exposing Ollama on port 11434.
- Add the following to the
.env
file (create one if it doesn't exist) in the root of the project:
OLLAMA_HOST=host.docker.internal:11434
- Make sure Ollama is reachable from the container.
- Add the following to the
.env
file (create one if it doesn't exist) in the root of the project:
OLLAMA_HOST=ollama-server-ip:11434