ollama
ollama 是一个用于本地运行/管理语言大模型的工具
open-webui
open-webui ollama 的 webui 客户端
部署
yaml
services:
ollama:
volumes:
- ./ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: docker-image-pusher/ollama:latest
open-webui:
image: ghcr.io/docker-image-pusher/open-webui:main
container_name: open-webui
volumes:
- ./open-webui:/app/backend/data
depends_on:
- ollama
ports:
- 8080:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY=secretx500'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
ollama: {}
open-webui: {}