thedocks/ollama/docker-compose.yml

41 lines
891 B
YAML
Raw Normal View History

2024-05-22 21:47:36 +01:00
services:
ollama:
2025-01-19 23:05:37 +00:00
volumes:
- ollama:/root/.ollama
2024-05-22 21:47:36 +01:00
container_name: ollama
2025-01-19 23:05:37 +00:00
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
2025-01-20 14:35:18 +00:00
ports:
2025-01-20 20:52:18 +00:00
- 11434:11434
devices:
- /dev/dri:/dev/dri
2025-01-20 20:57:21 +00:00
2025-01-19 23:05:37 +00:00
open-webui:
build:
context: .
args:
OLLAMA_BASE_URL: '/ollama'
dockerfile: Dockerfile
2025-02-18 17:22:38 +00:00
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-latest}
2025-01-19 23:05:37 +00:00
container_name: open-webui
2024-05-22 21:47:36 +01:00
volumes:
2025-01-19 23:05:37 +00:00
- open-webui:/app/backend/data
depends_on:
- ollama
ports:
- ${OPEN_WEBUI_PORT-3001}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
2025-01-20 20:52:18 +00:00
devices:
- /dev/dri:/dev/dri
2025-01-19 23:05:37 +00:00
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
ollama: {}
2025-01-20 20:52:18 +00:00
open-webui: {}