services: ollama: image: ollama/ollama:latest container_name: ollama ports: - 11434:11434 volumes: - /data/docker/ollama/ollama:/root/.ollama deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] restart: unless-stopped open-webui: image: ghcr.io/open-webui/open-webui:cuda container_name: open-webui ports: - 3010:8080 volumes: - /data/docker/ollama/open-webui:/app/backend/data environment: - 'OLLAMA_BASE_URL=http://ollama:11434' - 'WEBUI_AUTH=False' extra_hosts: - host.docker.internal:host-gateway deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] depends_on: - ollama restart: unless-stopped