A PERSONAL PLATFORM, DOCUMENTED IN PUBLIC
Every side project,
shipped the same way.
I build a lot of side projects, and I was tired of deciding how to deploy each one. Blueprint is where I made those decisions once: one Google Cloud project, one Postgres instance, one release process.
- Owner
- Lucas Scariot
- Code
- Private
- This site
- Public showcase
My own system, not a product. About this site
PART 01 OF 07
Project list
A project starts as one entry in a list kept in the platform repository. Applying it creates the project's private repository from a template, with its deploy identities, image registry, state bucket and CI runner.
- Entry
- name + description
- Database
- opt-in
- Applied
- by hand
PART 02 OF 07
Project repo
Each project keeps its code in its own repository. Every apps/<name>/Dockerfile is a deployable service, so one project can mix languages. Its workflow files only call the platform's.
- Listen on
- $PORT
- Health
- /health
- State on disk
- none
PART 03 OF 07
CI runner
GitHub Actions jobs run on a Mac Studio of mine, in three runner containers per project. Merging the release PR builds every image, pushes it, and applies the project's infrastructure with the new digests.
- Runners
- 1 per project
- Images
- x86-64
- Fallback
- none
PART 04 OF 07
Cloud Run
Where the apps run: stateless HTTP containers that scale to zero when nobody is using them, which is what keeps an idle project close to free. Every folder in apps/ becomes one service.
- CPU
- 1
- Memory
- 512 MiB
- Instances
- 0 to 2
PART 05 OF 07
DNS
Cloudflare holds the records, with its proxy off. A hostname declared in the project list gets a DNS record and a Cloud Run domain mapping, and Google issues the certificate.
- Default
- a subdomain
- Certificate
- Google-issued
- Ready in
- ≈ 15 min
PART 06 OF 07
PostgreSQL
One shared instance on the smallest tier, whatever the number of projects. A project that opts in gets its own database and role, handed to its apps as DATABASE_URL.
- Version
- PostgreSQL 17
- Connections
- 25, shared
- Cost
- ≈ €8 a month
PART 07 OF 07
Secret Manager
The source of truth for production values. A gitignored file in each project is the working copy, and every key in it reaches the project's apps as an environment variable.
- Working copy
- .env.production
- Sync
- bin/secrets push
- Takes effect
- next release
- 1list entry starts
a new project - 2merges from a branch
to production - 0instances running
while idle - ≈ €8a month, fixed.
The rest scales to zero.
01 / WHAT A PROJECT GETS
The same foundations,
every time.
A new project starts with all of this in place,
so the only new thing is the project.
A repository of its own
Private and created from a template, with deploy identities, an image registry, a state bucket and three CI runners. All from one entry in the project list.
Any language with a Dockerfile
Each folder in apps/ becomes a Cloud Run service that scales to zero. The contract is short: listen on $PORT, keep no state on disk.
Postgres, already there
Opt in and the project gets its own database on the shared PostgreSQL 17 instance, delivered to the app as DATABASE_URL.
Releases by pull request
Merge a change, then merge the release PR that Release Please keeps ready. That second merge builds and deploys every app under one version.
Secrets with one home
Production values live in Secret Manager. One command pushes a local file, and every key reaches the apps with the next release.
A hostname in one line
Declare a hostname and the platform creates the Cloudflare record and the Cloud Run mapping. Google issues the certificate.
02 / THE PATH TO PRODUCTION
From a name
to a live app.
Three steps, identical for every project. These are the real files, shown with a made-up project called notebook.
The release flow, step by stepprojects = {
notebook = {
description = "A place for small ideas"
database = true
}
}01 Add an entry, review the plan, apply it. The repository appears.
notebook/
├── apps/
│ └── web/
│ ├── Dockerfile
│ └── the app, in any language
└── infra/
└── main.tf02 One Dockerfile per app, listening on $PORT.
feat: add something useful
→ review checks and squash-merge
chore(main): release X.Y.Z
→ review and merge the release PR
→ build · push · deploy
→ verify the running app03 The release PR is the deploy button.
03 / DECISIONS
What I chose,
and what I turned down.
The point was to stop deciding. These were settled once,
so that no project has to settle them again.
- Compute
Cloud Run
Instead of Kubernetes
Kubernetes bills while idle and needs more tooling around it. Cloud Run runs a container and scales it to zero.
- Database
One shared Postgres
Instead of Neon or Firestore
About €8 a month on Cloud SQL's smallest tier, however many projects use it. Neon lives outside Google Cloud, and Firestore is not relational.
- Ingress
Domain mappings and plain DNS
Instead of a Google load balancer
A load balancer costs about $18 a month before the first request, against a target of nearly zero.
- Deploys
tofu apply, with new image digests
Instead of gcloud run deploy from CI
One mechanism changes both infrastructure and running code, instead of two that can disagree.
- Environments
Production only
Instead of staging and pull request previews
They would double the decisions this platform exists to avoid.
WHAT THAT COSTS IN RETURN
Defaults and limits25 database connections
One small Postgres instance serves every project, with no SLA. Apps keep pools of one or two connections.
One build machine
Jobs wait while the Mac is off or asleep. There is no fallback to GitHub's own runners.
Preview-grade domains
Custom hostnames rely on Cloud Run domain mappings, a Preview feature Google does not recommend for production.
One trusted owner
Projects are separated by convention more than by walls. Right for my own code, wrong for tenants.
04 / THE HANDBOOK
The instructions
I actually follow.
Nine operating guides with the exact commands.
I wrote them so I would not have to remember.
05 / ABOUT THIS SITE
Public site.
Private code.
Blueprint is my personal system, not a product. Its repository is private and I am the only one with access, so there is nothing here to install, clone or sign up for.
This site is the showcase: how the platform works, the decisions behind it, and the handbook I run it with. If you are building something similar, take whatever is useful.
RUNNING ON IT2 PROJECTS
hello
This site. It began as the demo that proved the platform end to end, and it still releases through it.
cockpit
A dashboard for my pull requests, CI runs and runners.