Recipes

Recipes are complete, annotated Coastfile examples for common project shapes. Each recipe includes a full Coastfile you can copy and adapt, followed by a section-by-section walkthrough explaining why each decision was made.

If you are new to Coastfiles, start with the Coastfiles reference first. Recipes assume familiarity with the core concepts.

  • Full-Stack Monorepo - shared Postgres and Redis on the host, bare-service Vite frontends, and a dockerized backend via compose. Covers volume strategies, healthchecks, assign tuning, and exclude_paths for large repos.
  • Next.js Application - Next.js with Turbopack, shared Postgres and Redis, background workers, and dynamic port handling for auth callbacks. Covers private_paths for .next isolation, bare service optimization, and multi-agent worktree support.