File: //opt/ollama-webui/docker-compose.yaml
version: '3.8'
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
open-webui:
build:
context: .
args:
OLLAMA_BASE_URL: '/ollama'
dockerfile: Dockerfile
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
volumes:
- open-webui:/app/backend/data
depends_on:
- ollama
ports:
- 3090:8080
environment:
- 'OLLAMA_BASE_URL=http://127.0.0.1:11434'
- 'AUTOMATIC1111_BASE_URL=http://plano.panomity.com:7878'
- 'WEBUI_SECRET_KEY='
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
network_mode: host
volumes:
ollama: {}
open-webui: {}