Skip to content

Instantly share code, notes, and snippets.

@notthebee
Created August 23, 2024 13:12
Show Gist options
  • Save notthebee/1dfc5a82d13dd2bb6589a1e4747e03cf to your computer and use it in GitHub Desktop.
Save notthebee/1dfc5a82d13dd2bb6589a1e4747e03cf to your computer and use it in GitHub Desktop.
Ollama docker-compose
---
services:
webui:
image: ghcr.io/open-webui/open-webui:main
ports:
- 8080:8080/tcp
environment:
- OLLAMA_BASE_URL=http://ollama:11434
volumes:
- /var/opt/data/ollama/webui:/app/backend/data
depends_on:
- ollama
ollama:
image: ollama/ollama:rocm
ports:
- 11434:11434/tcp
volumes:
- /var/opt/data/ollama/ollama:/root/.ollama
devices:
- /dev/kfd
- /dev/dri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment