Create and bind a database
nerdit.toml
The
cache binding above provides NERDIT_DB_CACHE_URL; it does not become REDIS_URL because it is not named default.
Connect an external database
nerdit.toml
Credentials and network boundaries
Managed passwords are minted by the Engine and stored encrypted. List and diagnostic responses show password-free endpoints or secret names; complete credentials are injected only into bound applications. Managed ports bind to loopback and the Docker bridge gateway, not every host interface. Do not publish them to the LAN as a troubleshooting shortcut. Model and database bindings share the[models].bridge_host reachability setting.
Operate a database
Choose a backup
See backup and recovery for archive custody, offline procedures, and recovery limitations.
Logical dumps and live restore
The following commands are implemented in the current merged source, whose package version is 0.6.0. They are not in the verified latest published release, v0.5.5. Check
nerdit db --help; do not expect the installer or nerdit update to provide these commands until a release includes them.pg_dump or redis-cli --rdb against a ready database. The request blocks during capture. Archives remain on the Engine machine; the API returns metadata, not their contents. If a client times out, list dumps before retrying because the capture may have completed.
After stopping applications bound to the target, restore a listed dump basename, not a file path:
--force bypasses that guard and can interrupt connections or wait on locks.
Restoring to another database of the same engine supports cloning. Restore only trusted database content: PostgreSQL dump contents can execute routines with the managed database’s privileges. There is no MCP restore tool.
Logical dump retention defaults to five per database in current source. Set [retention].dump_keep_last and restart to change it; zero disables automatic pruning. Copies outside the Engine’s storage remain your responsibility.
Remove a database
Take and verify a backup first. Database removal requires explicit data purge, and it also destroys the minted credential:--force without understanding the interruption and data loss.