Stacks/Node.js/Databases

Databases for the Node.js stack

This page shows both database modes supported by the stack: container-based databases that run as services in the stack and managed database services that keep the database outside it.

Container-based databases such as PostgreSQL are available inside the stack, while managed database services such as Cloud PostgreSQL connect apps to external providers.

Container databases in this stack

Database providers and services

Keep the same stack-specific connection model whether you run the database inside the stack or connect to a managed provider.

Azure

Use Azure Databases as the managed database target for this stack.

DigitalOcean

Use DigitalOcean Managed databases as the managed database target for this stack.

Google Cloud Platform

Use Google Cloud Platform Cloud SQL as the managed database target for this stack.

Container databases stay close to the app

PostgreSQL can run inside the stack when you want a self-contained app and database setup.

Managed database connections stay reusable

Managed database services such as Cloud PostgreSQL keep the application-side connection details with the stack while the database runs elsewhere.

Move between the two models

Start with a container database or move to a managed one later without rethinking how the app is configured in the stack.