OpenWebUI-Cuda/docker-compose.yml
bizzle 9518fc1052 docs: add Windows setup README and default Ollama URL to localhost
Add README with Windows clone/run instructions and Ollama model setup.
Default OLLAMA_API_BASE_URL to host.docker.internal so it works out of
the box on the same PC, with comments on pointing it at a remote PC.

Co-authored-by: Claude <claude-code@anthropic.com>
2026-06-21 20:53:16 -04:00

30 lines
1.1 KiB
YAML
Executable File

services:
open-webui2:
image: ghcr.io/open-webui/open-webui:cuda
container_name: open-webui2
ports:
- "3012:8080"
volumes:
- open-webui:/app/backend/data
environment:
# Defaults to Ollama running on this same PC (the Docker host).
# To use Ollama on ANOTHER machine on your network, replace
# host.docker.internal with that machine's IP, e.g.
# http://192.168.1.50:11434/api
# (On that remote machine, set OLLAMA_HOST=0.0.0.0 so it accepts LAN connections.)
- OLLAMA_API_BASE_URL=http://host.docker.internal:11434/api
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-default-random-key}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
volumes:
open-webui: