Skip to content

How to Deploy Odoo on Google Cloud (GCP) in 2026

DeployMonkey Team · March 11, 2026 9 min read

Deploying Odoo on Google Cloud: The Direct Answer

You can run Odoo on Google Cloud Platform (GCP) by creating a Compute Engine VM (e2-medium for small teams, e2-standard-2 for production), installing Docker, and deploying Odoo and PostgreSQL as containers. GCP offers a $300 free credit for 90 days, per-second billing, and an Always Free e2-micro tier — making it one of the most approachable clouds to experiment with before committing. To skip the manual setup, DeployMonkey connects to your GCP VM and handles Docker, Nginx, SSL, and automated backups automatically. See also: best Odoo hosting options for 2026.

Why Choose GCP for Odoo Hosting

  • $300 free credits for 90 days — New GCP accounts receive $300 in credits valid for 90 days. This is enough to run a production-grade Odoo server (e2-standard-2) for the entire trial period at zero cost, giving you time to evaluate the platform thoroughly.
  • Per-second billing — GCP charges per second (minimum 1 minute), not per hour. For short-lived test or build instances, this can save meaningful amounts compared to hourly billing providers.
  • Strong network performance — GCP's private fiber network connects all regions. For multi-region Odoo setups or high-traffic applications, GCP's network latency between regions is consistently lower than AWS or Azure.
  • Preemptible VMs for dev/staging — Preemptible VMs (GCP's equivalent of Spot Instances) are up to 80% cheaper than standard VMs and are ideal for non-production Odoo environments where brief interruptions are acceptable.
  • Always Free e2-micro tier — One e2-micro instance (0.25–2 vCPU, 1 GB RAM) per month is permanently free in us-west1, us-central1, or us-east1. Not enough for production Odoo, but useful for a lightweight management or proxy server.

Recommended GCP Instance Types for Odoo

See also: Odoo server requirements for sizing by user count.

Use Case GCP Instance RAM / vCPU Price/mo (us-central1)
Development e2-small 2 GB / 0.5–2 vCPU ~$13
Small Business (1–10 users) e2-medium 4 GB / 0.5–2 vCPU ~$27
Growing Team (10–50 users) e2-standard-2 8 GB / 2 vCPU ~$53
Mid-Market (50–200 users) e2-standard-4 16 GB / 4 vCPU ~$106
Enterprise n2-standard-8 32 GB / 8 vCPU ~$270

Note: e2 instances use shared-core CPU. For sustained heavy Odoo loads (large ERP with manufacturing or heavy reporting), n2-standard instances provide dedicated vCPUs at a higher price point.

The Easy Way: Deploy Odoo on GCP with DeployMonkey

DeployMonkey connects to your Compute Engine VM over SSH and takes care of the entire Odoo stack — Docker setup, Nginx reverse proxy, SSL certificates via Let's Encrypt, automated S3 backups, and monitoring.

  1. Create a Compute Engine VM in the GCP Console. Choose Ubuntu 22.04 LTS, your instance type, and your preferred region. Enable HTTP and HTTPS traffic under the Firewall section. Note the external IP address or reserve a static IP.
  2. Add the VM to DeployMonkey at app.deploymonkey.com. Provide the external IP and an SSH key — DeployMonkey installs Docker and its management agent automatically.
  3. Create your Odoo instance — choose your Odoo version (14–19), Community or Enterprise, configure your domain, and deploy. SSL is provisioned in minutes.

Manual Method: Deploy Odoo on GCP with Docker

For a full walkthrough of the Docker setup, see running Odoo with Docker.

1. Create the Compute Engine Instance

In the GCP Console, navigate to Compute Engine > VM Instances > Create Instance. Choose your machine type, boot disk (Ubuntu 22.04 LTS, at least 20 GB), and tick both "Allow HTTP traffic" and "Allow HTTPS traffic" under Firewall. Use the gcloud CLI as an alternative:

gcloud compute instances create odoo-server \
  --machine-type=e2-standard-2 \
  --image-family=ubuntu-2204-lts \
  --image-project=ubuntu-os-cloud \
  --boot-disk-size=50GB \
  --tags=http-server,https-server \
  --zone=us-central1-a

2. Configure VPC Firewall Rules

gcloud compute firewall-rules create allow-odoo-web \
  --allow tcp:80,tcp:443 \
  --target-tags=http-server,https-server \
  --description="Allow HTTP and HTTPS for Odoo"

3. Install Docker and Deploy Odoo

gcloud compute ssh odoo-server --zone=us-central1-a

# On the VM:
sudo apt-get update && sudo apt-get upgrade -y
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER
newgrp docker

mkdir -p /opt/odoo && cd /opt/odoo
cat > docker-compose.yml <<'EOF'
version: "3.8"
services:
  db:
image: postgres:16
environment:
  POSTGRES_DB: odoo
  POSTGRES_USER: odoo
  POSTGRES_PASSWORD: changeme_strong
volumes:
  - pgdata:/var/lib/postgresql/data
  odoo:
image: odoo:17
depends_on:
  - db
ports:
  - "8069:8069"
environment:
  HOST: db
  USER: odoo
  PASSWORD: changeme_strong
volumes:
  - odoo-data:/var/lib/odoo
volumes:
  pgdata:
  odoo-data:
EOF
docker compose up -d

4. Reserve a Static External IP

gcloud compute addresses create odoo-static-ip \
  --region=us-central1

gcloud compute instances delete-access-config odoo-server \
  --access-config-name="External NAT" --zone=us-central1-a

gcloud compute instances add-access-config odoo-server \
  --access-config-name="External NAT" \
  --address=$(gcloud compute addresses describe odoo-static-ip \
--region=us-central1 --format='value(address)') \
  --zone=us-central1-a

GCP-Specific Tips for Odoo

Cloud SQL for Managed PostgreSQL

Google Cloud SQL for PostgreSQL offers automated backups, point-in-time recovery, and read replicas without managing PostgreSQL yourself. Cloud SQL is more expensive than local PostgreSQL (a db-g1-small instance is ~$25/month) but significantly reduces operational risk for production databases. To connect Odoo to Cloud SQL, use the Cloud SQL Auth Proxy as a sidecar container in your Docker Compose setup, or use the public IP with SSL certificates. For most small Odoo deployments, local PostgreSQL with a Cloud Storage backup cron is the right tradeoff.

Preemptible VMs for Dev and Staging

GCP's preemptible VMs can be interrupted by Google with 30 seconds notice but cost 60–80% less than standard VMs. They are ideal for development, CI/CD, or staging Odoo environments where a brief interruption is acceptable. Add --preemptible to your gcloud command or enable it in the console:

gcloud compute instances create odoo-staging \
  --machine-type=e2-standard-2 \
  --preemptible \
  --image-family=ubuntu-2204-lts \
  --image-project=ubuntu-os-cloud \
  --zone=us-central1-a

Google Cloud Armor for DDoS Protection

If you are running a high-traffic Odoo instance (public e-commerce, customer portal), Google Cloud Armor provides DDoS protection and WAF capabilities at the load balancer level. Cloud Armor's managed protection rulesets can block common web attacks (SQLi, XSS) before they reach your Odoo server. This requires setting up an HTTPS load balancer, which adds complexity and cost (~$18/month for the LB plus traffic charges) but is worthwhile for externally-facing Odoo instances.

Cloud Storage for Odoo Backups

GCP's Cloud Storage is the GCP-native equivalent of S3. Sync your Odoo database dumps and filestore to a Cloud Storage bucket for off-instance backups:

gsutil rsync -r /var/lib/odoo/filestore gs://your-bucket/odoo-filestore
pg_dump -U odoo odoo | gzip | gsutil cp - gs://your-bucket/dumps/odoo_$(date +%F).sql.gz

Cloud Storage Nearline (~$0.01/GB/month) is appropriate for daily backup retention. Standard storage (~$0.02/GB/month) suits filestore syncing where reads happen regularly.

Per-Second Billing: Practical Impact

GCP charges per second with a 1-minute minimum. If you regularly spin up Odoo instances for demos, testing, or client previews and tear them down within an hour, GCP's per-second billing saves meaningfully compared to hourly billing. A one-minute demo on an e2-standard-2 costs roughly $0.001 on GCP versus $0.067 if billed for a full hour.

Committed Use Discounts

GCP's Committed Use Discounts (CUDs) provide 37% (1-year) or 55% (3-year) savings on compute for consistent Odoo production servers — no upfront payment required, just a usage commitment. This competes directly with AWS Reserved Instances and is worth evaluating for stable, long-running Odoo deployments.

Pricing Breakdown

Setup GCP VM Cost DeployMonkey Plan Total/mo
Dev / Solo ~$13 (e2-small) Free ~$13
Small Business ~$27 (e2-medium) $15 (Base) ~$42
Growing Team ~$53 (e2-standard-2) $29 (Pro) ~$82
Agency / Multi-Client $106+ (e2-standard-4) $150 (Agency) $256+

With 1-year Committed Use Discounts applied, GCP compute costs drop by about 37%, making GCP one of the more competitive clouds for stable Odoo production workloads.

Get Started Today

Google Cloud's $300 free credit means you can run a full production-grade Odoo stack for 90 days at no cost. Pair it with DeployMonkey's automated deployment platform and you have a managed Odoo environment without the manual setup overhead. Create your free DeployMonkey account at app.deploymonkey.com/register and deploy Odoo on GCP in under 15 minutes.