THE BLUEPRINT HANDBOOK 4 min read
Local development
Run your app locally and build the container that production will run.
Operating notes for a personal platform. Its repository is private, so read these as a reference: the commands need access that only its owner has.
One folder, one service
apps/
web/
Dockerfile
...your app
api/
Dockerfile
...another service
infra/main.tf
compose.yamlBlueprint discovers services by looking for apps/*/Dockerfile. A project named notebook with an app named web deploys as notebook-web. One release version covers every app.
Run the template locally
For the Node starter, copy the local environment file and start Postgres. Run the app on your machine.
cp .env.example .env
docker compose up --detach
cd apps/web
npm install
node --env-file=../../.env server.jsThe compose file runs PostgreSQL 17. Adapt the app command to your language and package manager. Apps without a database do not need Postgres.
This documentation site runs with cd apps/web && npm start. It has no runtime dependencies and needs no environment file or database.
Build what Cloud Run will run
docker build --platform linux/amd64 -t notebook-web apps/web
docker run --rm -p 8080:8080 -e PORT=8080 notebook-webCloud Run needs an x86-64 image. Apple Silicon builds use emulation. Pass any environment variables your app needs to the local container, and make sure it can reach its database.
The container must listen on 0.0.0.0 at $PORT. Keep it stateless and handle SIGTERM so requests and database connections can close.
Check your work before releasing
Run your app's tests, build its Docker image, and request its health endpoint. The shared PR workflow checks the title, builds every app, and shows an infrastructure plan. Add project-specific tests to your own workflow.
curl --fail http://localhost:8080/healthServices are public by default. Set public = false to require Google IAM authentication, or implement your own application authentication before exposing private data.
Reviewed October 4, 2026.