Astro Boilerplate
For Node.js
wodby/astro-boilerplateAstro application stack for content sites and server-rendered apps on Node.js, with optional PostgreSQL, Valkey caching, document conversion, and email services.
Start with this stackServices
The Astro stack comes with these services already connected. The table shows which ones are enabled by default when you create an app environment and, where services depend on each other, how they are linked.
| Stack service | Base service | Role | Links |
|---|---|---|---|
Node.js | Node.js (Astro) | Primary |
|
PostgreSQL | PostgreSQL | Disabled by default | — |
Valkey | Valkey | Disabled by default | — |
Mailpit | Mailpit | Disabled by default | — |
OpenSMTPD | OpenSMTPD | Disabled by default | — |
Gotenberg | Gotenberg | Disabled by default | — |
OpenTelemetry Collector | OpenTelemetry Collector | Disabled by default | — |
The full service table lists the configs, settings, actions, cron schedules, volumes, links, backups, and imports of each service in this stack.
When you add the stack to your organization, the copy is yours to change. Changes go into a draft that you publish as a new stack revision, and app environments pick them up when they upgrade.
Add services
Add any service from the catalog, such as a cache, a search engine, or a mail relay, and link it to the services that use it.
Remove what you do not need
Leave optional services out when you create an app, disable a service in one app environment, or remove it from the stack for every environment.
Change how services connect
Point a link at another service in the stack or, where the link allows it, at a service of another app or at custom values such as a managed database. Change it for the whole stack or for one app environment.
The stack configuration guide covers adding services, removing them, and changing links.
Platform
Develop in a persistent workspace
Edit a Git checkout with the whole stack running next to it.
Build and deploy from Git
Build from a repository, run scripts around a deployment, and roll back.
Keep stack configuration in Git
Version stack.yml and import approved changes as new revisions.
Automatic stack updates
Choose which updates apply automatically, and when.
Monitor and debug running services
Stream logs, inspect metrics, and open a web terminal.
Domains, HTTPS, and ports
Technical domains, custom domains, certificates, and published ports.
Dev workspaces
Create an app environment in workspace mode and the Astro stack runs from a persistent Git checkout you can edit. Development happens against the same services the app uses everywhere else.
The databases, caches and other services of the stack run next to your code, so your machine only needs an editor and an SSH key.
The workspace serves your working checkout, so you can open the result through the app endpoints instead of waiting for a new image.
Connect over SSH with your registered key and use your editor, the terminal, or a web terminal from the dashboard.
Open Wodby Agent chats in the browser, or point Codex or Claude Code at the same checkout with your own account.
Commit and push from the workspace, then release the reviewed change to staging or production through CI/CD.
The code checkout and your private home directory survive restarts and pauses, so work in progress is still there tomorrow.
Supporting services without source code, such as databases and caches, keep their normal runtime. Workspace availability is checked when you create an environment and depends on the selected services, versions, and cluster.
Deploy
The application stack stays the same on Wodby Cloud, in your own cloud account, or on your own server. Wodby keeps Kubernetes, the cluster infrastructure, and the stack up to date wherever it runs, so the choice comes down to where you want the resources and what you want to pay.
Wodby hosts the cluster, so there is no cloud account or server to set up first.
Keep the cluster and its resources in your own cloud account. Wodby creates it and keeps it up to date.
Run the same stack on a VM, bare-metal server, or dedicated host at the lowest cost. Wodby checks its packages for vulnerabilities and installs updates when you choose.
Hosting options for this stack compares the three in more detail.
CI/CD
Wodby builds your code into the Node.js service of this stack.
Start from a public boilerplate or connect your own repository from a supported Git provider. Wodby CI builds the images and deploys them; GitHub Actions, GitLab CI, and CircleCI can run the same steps, and images can go to an external registry.
Release safety
Run post-deploy scripts
Run migrations, cache clears, and other jobs after a successful deployment.
Roll back a failed release
When a service fails its health checks after an upgrade, Wodby attempts to restore its last successful release.
Restore a previous build
Redeploy an eligible build from history without rebuilding it.
Build rollback restores application images, not stack configuration or persistent data.
Public boilerplates
Astro Boilerplate
For Node.js
wodby/astro-boilerplateContainer registries
CI/CD for this stack lists the boilerplates, Git providers, CI providers, and registries, and explains deployment scripts, history, and rollback.
Routing and endpoints
Services in this stack declare the endpoints and ports they can expose. Each app environment can start on default technical domains, then add custom domains, HTTPS, access controls, redirects, or published TCP and UDP ports as needed.
Default technical domains
Reach supported services on generated Wodby domains, then attach custom domains when ready.
Automatic Let's Encrypt HTTPS
Provision and automatically renew trusted certificates for supported public routes.
Authentication and route controls
Protect routes with HTTP basic auth, redirect alternate domains or paths, and tune HSTS, no-index, upload limits, and more.
Routing and endpoints covers technical routes, custom domains, certificates, route controls, redirects, and published ports.
Private app access
Private app access is chosen when you create the app. It puts the HTTP endpoints of the app behind an identity check or on a private network, for the whole app or for selected endpoints such as an admin area.
Publish behind a Cloudflare Access identity policy or keep endpoints inside a Cloudflare One private network.
Give authorized tailnet users and devices stable private HTTPS addresses for the app.
The private app access page compares an identity check through Cloudflare Access with a private network through Cloudflare One or Tailscale.
Databases
This stack runs PostgreSQL in the cluster. Add a managed database service to the stack when the database server should run at a cloud provider.
Container databases in this stack
Managed database integrations
Database options for this stack lists the container databases and the managed database providers.
Backups
The services in this stack that store data can be backed up by hand or on a schedule. An archive can be uploaded to a storage provider you connect and imported into another environment.
Run automatic backups on a schedule
A backup preset stores the destination of the archives and can run backups on a schedule.
Refresh development and staging
Import an archive, an uploaded file, or a file from a URL into another environment.
Upload backup archives to cloud storage
Archives go to Wodby Blob Storage or to a bucket at a storage provider you connect, outside the cluster.
Services with backups
Backup storage integrations
Backups and imports for this stack covers archive destinations, restoring, and importing existing data.
Mailpit captures outgoing mail for inspection and delivers none of it, which suits development environments. OpenSMTPD relays mail through an SMTP provider when it has to reach real recipients.
Email for this stack lists the mail services and the SMTP providers.
Integrations
An integration is a connection to an account you already have at an outside provider. You create it once in your organization and attach it to the services that use it, and each app environment can override its values.
Among the providers are Adyen, Algolia, AWS, Anthropic, Auth0, and others.
Pass an OpenAI API key to the services that call the API.
Pass an Anthropic API key to the services that call the API.
Pass Intercom credentials to the services that use Intercom.
Pass Sentry settings to the services that report errors.
Pass Stripe keys to the services that take payments, with different keys per environment.
Pass Mailchimp credentials to the services that use Mailchimp.
All integrations for this stack lists them by kind: email relays, storage, CI/CD, Git, managed databases, registries, and variables.
Configuration and customization
Each service has settings, and some have config files you can edit. The stack holds the defaults, and an app environment overrides what it needs without a new image.
See the configs and settings of each service in this stack.
Git-managed configuration
A stack can be described in a stack.yml file kept in a Git repository: its services, their defaults, and their settings. Wodby imports a change to that file as a new stack revision.
Review changes before they apply
A change to the stack goes through a commit or a pull request before any app environment sees it.
Import updates as new revisions
Wodby follows a branch or semantic-version tags. Running app environments stay on their revision until they are upgraded.
Keep service updates enabled
Updates from Git and automatic updates of services are switched on separately, so a stack kept in Git still receives new service releases.
Read more about Git-backed stacks and how they work with automatic updates.
Security and maintenance
With service auto-updates enabled on the stack, Wodby picks up eligible security patches and maintenance releases of its services and creates a new stack revision. Running app environments do not change until they are upgraded to that revision.
You choose which app environments upgrade automatically, and a maintenance window in local time limits when production does. Development and staging can upgrade first.
Read more about automatic updates: policies, revisions, maintenance windows, and automatic upgrades of app environments.
Observability and debugging
Each app environment shows the logs and metrics of its services, and you can open a terminal inside a running container.
Follow the output of an app service in real time, and select a workload or container when the service runs more than one.
See CPU, memory, storage, readiness, and restarts for the app environment and for each service.
Open a shell in a running service container from the browser, for inspection and one-off commands.
Read more about observability for logs and metrics, and about service configuration for the web terminal.
Environments
An app can have development, staging, production, and other environments, all created from the same Astro stack, on one cluster or on several.
The same services everywhere
Every environment starts with the services and integrations that the stack enables by default.
Customize each environment
Override values, configs, and settings in one environment. The stack and the other environments stay as they are.
Read more about app environments.
Get started
Each app environment starts from the stack defaults and keeps its own values.
Technical notes
The Astro stack builds an image from your repository and runs Astro's Node.js server for on-demand and prerendered pages. PostgreSQL, Valkey, Mailpit, OpenSMTPD, Gotenberg, and an OpenTelemetry Collector are optional services.
The app service starts the standalone server of Astro's Node.js adapter. A purely static site, with no adapter, gives the stack no server to run, and the adapter's middleware mode calls for a server of your own.
In a development workspace the app service runs the Astro development server with your Astro configuration. Saved files are picked up within seconds, without a restart, and setup installs dependencies from the lockfile.
Link variables and secrets do not exist while the image is built, so prerendered pages cannot use them. Any page or endpoint that reads runtime variables, cookies, or request data must render on demand.
Anything the app writes to the container's file system disappears when the container is replaced. The adapter's default session storage is there too and is not shared between replicas, so use a Redis session driver with Valkey.
Read the Astro stack guide for setup steps, settings, and limits.
FAQ
Astro application stack for content sites and server-rendered apps on Node.js, with optional PostgreSQL, Valkey caching, document conversion, and email services. An app environment created from the stack starts with the services that are enabled by default. Optional services are selected when you create it or enabled later.
One stack can serve any number of apps, and each app can have development, staging, production, and other environments. The stack defines the services and their defaults. Values can differ by environment type, such as dev and prod, and each app environment can override them.
When an included service gets an update, the stack can be marked as outdated or create a new revision automatically under its update policy. Existing app environments stay on their current revision until you upgrade them manually or enable stack auto-upgrades with a maintenance window.
An integration is a connection to an account at an outside provider, such as an SMTP relay, a storage bucket for backups, or a managed database. You create it once in your organization and attach it to the services that use it, in any app environment. The Integrations section of this page lists the providers this stack can use.
Wodby CI is built in. A pipeline file in your repository builds the images and deploys them, and a push to the branch an environment follows starts it. The stack’s CI/CD options list the boilerplates and Git providers it works with.
The public wodby/wodby-ci repository has example pipelines.
To use your own CI system, run Wodby CLI from GitHub Actions, GitLab CI, CircleCI, or another runner. It performs the build, push, and deploy steps.
Yes. Environments of one app can run on different clusters. Development can run on Wodby Cloud or on a single server of your own while production runs on managed Kubernetes, and all of them use the same stack.