GCP stacks

A GCP stack is a Compute Engine VM running dokku in your project. OwnStack provisions via OAuth — you connect a Google account in the dashboard once, then create stacks in any project that account can administer.

Prerequisites

  • A GCP project with billing enabled.
  • The Compute Engine API enabled (compute.googleapis.com).
  • A Google account with at least roles/compute.instanceAdmin.v1 on the project, or owner.

Connect your Google account

In the dashboard, Cloud accounts → Add → Google. Complete OAuth. The control plane stores a refresh token (encrypted) and uses it to provision new stacks.

Create the stack

Stacks → New → GCP. Choose:

FieldWhat to set
ProjectPick from the projects your connected account administers.
Zoneus-central1-a is a sensible default; pick something close to your users.
Machine typee2-small (2 vCPU shared, 2 GiB) for small apps; e2-medium or n2-standard-2 for real workloads.
Disk size30 GiB minimum, 50 GiB comfortable.
Static external IPRecommended — DNS won't break on stop/start.

Firewall

OwnStack creates firewall rules in your VPC for ports 22, 80, 443. If you have a custom VPC with more restrictive defaults, allow these from 0.0.0.0/0 (or your trusted IP range for SSH).

Sizing

WorkloadRecommended
One small appe2-small
Real traffic + Postgres on-boxe2-medium or n2-standard-2
Multiple apps + workersn2-standard-4 or c2-standard-4
Heavy database workloadMove Postgres to Cloud SQL; keep stack small.

Decommissioning

$ ownstack stack destroy <stack>

Deletes the VM, releases the static IP, removes the firewall rules. Move your apps to another stack first if they're production.