services: ollama: image: ollama/ollama:latest ports: - "192.168.0.131:11434:11434" # Exposing API port environment: - OLLAMA_HOST=0.0.0.0:11434 restart: unless-stopped # Auto-restart open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui volumes: - open-webui:/app/backend/data depends_on: - ollama ports: - 192.168.0.131:3005:8080 environment: - 'OLLAMA_BASE_URL=http://192.168.0.131:11434' - 'WEBUI_SECRET_KEY=' #extra_hosts: #- host.docker.internal:host-gateway restart: unless-stopped volumes: ollama: {} open-webui: {}