Google Cloud Platform (GCP)

Deploy and manage Compute Engine VMs, Cloud Storage buckets, and Cloud SQL databases on GCP.

Supported Services

Compute Engine, Cloud Storage, Cloud SQL, VPC Networking

Prerequisites

  • GCP account with billing enabled
  • GCP project with required APIs enabled
  • Service account with appropriate permissions

1. Create Service Account

  1. Go to GCP Service Accounts
  2. Click Create Service Account
  3. Grant roles: compute.admin, storage.admin, cloudsql.admin
  4. Go to Keys → Add Key → Create new key (JSON)
  5. Download and save the JSON key file

2. Enable APIs

gcloud services enable compute.googleapis.com
gcloud services enable storage.googleapis.com
gcloud services enable sqladmin.googleapis.com

3. Connect to Docka

  1. Navigate to Providers in Docka
  2. Click Connect Provider → Google Cloud Platform
  3. Paste the entire service account JSON file contents
  4. Click Connect

Compute Engine Instance Types

TypevCPUsMemoryUse Case
e2-micro2 shared1 GBDevelopment
e2-small2 shared2 GBLight workloads
e2-medium2 shared4 GBGeneral purpose
n2-standard-228 GBProduction
n2-standard-4416 GBHigh performance

Cloud Storage Classes

ClassUse CasePrice/GB
StandardFrequently accessed$0.026
NearlineMonthly access$0.010
ColdlineQuarterly access$0.004
ArchiveYearly access$0.0012

Cloud SQL Databases

  • Engines: PostgreSQL, MySQL, SQL Server
  • High Availability: Regional instances with automatic failover
  • Backups: Automated and on-demand backups

API Example

curl -X POST https://api.docka.dev/v1/servers \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "name": "web-server",
    "provider_id": "gcp-provider-id",
    "region": "us-central1",
    "zone": "us-central1-a",
    "instance_type": "e2-medium"
  }'