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: