Ollama with Open WebUI on Google Cloud
Ollama with Open WebUI on Google Cloud is a pre-configured Compute Engine image that provides a ready-to-run local LLM environment. It combines Ollama for local model serving and Open WebUI for a browser-based chat interface, with the lightweight smollm2:135m model preloaded for immediate validation.
Disclaimer: All trademarks referenced in this listing belong to their respective owners. Their use does not imply any affiliation with or endorsement by the trademark holders.
What’s included
Section titled “What’s included”- Ollama local model server (listening privately on
127.0.0.1:11434) - Open WebUI browser interface (listening on port
8080) - Preloaded
smollm2:135mmodel for quick validation (CPU inference by default; pull larger models after launch on larger machine types)
Launch on Google Cloud
Section titled “Launch on Google Cloud”- Find and subscribe to Ollama with Open WebUI on the Google Cloud Marketplace.
- Launch a VM instance (
e2-standard-2or larger for basic validation; larger models require more CPU, memory, and disk capacity). - In your VPC firewall rules, allow TCP port
8080only from trusted IP addresses (or keep8080closed and use an SSH tunnel). Do not expose port11434publicly.
Open WebUI in your browser
Section titled “Open WebUI in your browser”Once the VM is running, open:
http://<INSTANCE_EXTERNAL_IP>:8080On first access, create the initial Open WebUI administrator account and start chatting with the preloaded smollm2:135m model.
Private access via SSH tunnel (recommended)
Section titled “Private access via SSH tunnel (recommended)”If you do not want to expose port 8080 in your VPC firewall, forward it over gcloud compute ssh:
gcloud compute ssh ubuntu@INSTANCE_NAME --project PROJECT_ID --zone ZONE -- -L 8080:127.0.0.1:8080Then open http://127.0.0.1:8080 in your local browser.
Ollama CLI and API
Section titled “Ollama CLI and API”To access the private Ollama API (127.0.0.1:11434) from your workstation, forward port 11434 over SSH:
gcloud compute ssh ubuntu@INSTANCE_NAME --project PROJECT_ID --zone ZONE -- -L 11434:127.0.0.1:11434curl http://127.0.0.1:11434/api/tagsFrom an SSH session on the VM, you can verify and pull additional models:
ollama listollama run smollm2:135m "Reply with OK only."ollama pull llama3.2:1bSupport
Section titled “Support”Questions or need help getting started? Contact support@elmcomputing.io.