~/docs/databases

Dashboard

Databases

Databases

Add a database to an environment and your services reach it by name. Nothing outside the server can reach it unless you say so.

Updated

2026-12-02

Source

apps/web/docs/databases/index.mdx

Engines

Postgres, MySQL, MariaDB, MongoDB, Redis and Valkey. Each database belongs to one environment; a copied environment gets its own, empty unless you pick starting data for Postgres.

Use it from a service

Add a reference to the database on a service and its connection details arrive as variables. The address only works inside the environment, so a copy of the environment never talks to the original's database.

Reach a database from your computer

terminal

npx @pherwerz/cloud db tunnel orders-db

This opens localhost:<port> and relays it to the database through pherwerz, so psql, pgAdmin, MySQL Workbench, MongoDB Compass or Redis Insight can connect while nothing is exposed on the server. It needs Update access to the project and runs until you press Ctrl+C.

FlagDoes
--port <n>Local port; defaults to the engine's own
--environment <name|id>When two databases share a name
--show-passwordPrint the password with the other values