services: open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui restart: always ports: - "3000:8080" environment: # SSH tunnel (Option A): keep host.docker.internal # LAN (Option B): set OLLAMA_BASE_URL=http://:11434 in a .env file next to this one - OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434} extra_hosts: # makes host.docker.internal resolve on Linux too (already works on Docker Desktop) - "host.docker.internal:host-gateway" volumes: - open-webui:/app/backend/data volumes: open-webui: