38 lines
788 B
YAML
38 lines
788 B
YAML
|
|
services:
|
|
ollama:
|
|
image: ollama/ollama:rocm
|
|
container_name: ollama
|
|
ports:
|
|
- 11434:11434
|
|
volumes:
|
|
- ./ollama:/root/.ollama
|
|
devices:
|
|
- /dev/kfd # Grant access to /dev/kfd device
|
|
- /dev/dri # Grant access to /dev/dri device
|
|
networks:
|
|
- chat-ui
|
|
restart: unless-stopped
|
|
|
|
open-webui:
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
container_name: open-WebUI
|
|
ports:
|
|
- "3000:8080"
|
|
volumes:
|
|
- ./open-webui:/app/backend/data
|
|
depends_on:
|
|
- ollama
|
|
environment:
|
|
- OLLAMA_BASE_URL=http://ollama:11434
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
restart: unless-stopped
|
|
networks:
|
|
- chat-ui
|
|
|
|
|
|
networks:
|
|
chat-ui:
|
|
driver: bridge
|