2024-04-29 17:19:07 -07:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
ollama-intel-gpu:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: ollama-intel-gpu
|
|
|
|
image: ollama-intel-gpu:latest
|
|
|
|
restart: always
|
|
|
|
devices:
|
|
|
|
- /dev/dri:/dev/dri
|
|
|
|
volumes:
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
|
|
|
- ollama-intel-gpu:/root/.ollama
|
|
|
|
environment:
|
|
|
|
- DISPLAY=${DISPLAY}
|
|
|
|
ollama-webui:
|
2024-08-01 22:08:02 -07:00
|
|
|
image: ghcr.io/open-webui/open-webui:v0.3.10
|
2024-04-29 17:19:07 -07:00
|
|
|
container_name: ollama-webui
|
|
|
|
volumes:
|
|
|
|
- ollama-webui:/app/backend/data
|
|
|
|
depends_on:
|
|
|
|
- ollama-intel-gpu
|
|
|
|
ports:
|
|
|
|
- ${OLLAMA_WEBUI_PORT-3000}:8080
|
|
|
|
environment:
|
|
|
|
- OLLAMA_BASE_URL=http://ollama-intel-gpu:11434
|
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
ollama-webui: {}
|
|
|
|
ollama-intel-gpu: {}
|