1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- services:
- ollama:
- volumes:
- - ollama:/root/.ollama
- container_name: ollama
- pull_policy: always
- tty: true
- restart: unless-stopped
- image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
- open-webui:
- build:
- context: .
- args:
- OLLAMA_BASE_URL: '/ollama'
- dockerfile: Dockerfile
- image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
- container_name: open-webui
- volumes:
- - open-webui:/app/backend/data
- depends_on:
- - ollama
- ports:
- - ${OPEN_WEBUI_PORT-3000}:8080
- environment:
- - 'OLLAMA_BASE_URL=http://ollama:11434'
- - 'WEBUI_SECRET_KEY='
- - 'OPENAI_API_KEY=${OPENAI_API_KEY}'
- - 'LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}'
- - 'LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}'
- extra_hosts:
- - host.docker.internal:host-gateway
- restart: unless-stopped
- watchtower:
- container_name: watchtower
- image: containrrr/watchtower:latest
- restart: unless-stopped
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- environment:
- - WATCHTOWER_CLEANUP=true
- - WATCHTOWER_POLL_INTERVAL=1800
- volumes:
- ollama: {}
- open-webui: {}
|