Skip to content

Instantly share code, notes, and snippets.

@mohitsethi
Forked from notthebee/compose.yaml
Created December 2, 2024 13:09
Show Gist options
  • Select an option

  • Save mohitsethi/cee763e7a149ccd42bdfe79d7e52af51 to your computer and use it in GitHub Desktop.

Select an option

Save mohitsethi/cee763e7a149ccd42bdfe79d7e52af51 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