Clone the repo
git clone <https://github.com/valiantlynx/ollama-docker>
cd ollama-docker
Replace docker-compose.yml
with this file
Run the app
sudo docker-compose up -d
The WebUI will be served at http://localhost:8080 and Ollama will be available at http://localhost:11434
ollama/docs/api.md at main · ollama/ollama
<aside> ❗
If you’re running Ollama without docker it will not be accessible externally by default
For that set a environment variable in your ~/.bashrc
OLLAMA_HOST=0.0.0.0:11434
#Optionally, set a model folder
OLLAMA_MODELS=/home/USER/ollama/ollama/models
</aside>