DockHosting Docs
Databases

Create a database

Provision a managed database in seconds and connect it to your app.

From the dashboard

  1. Open Databases in your dashboard and click New database.
  2. Pick an engine and a version — see supported engines.
  3. Click Create. The instance is provisioned and a connection string is generated within seconds.

Connecting it to a project

Attach the database to a project from either side — the project's settings or the database's settings. Once attached:

  • The connection string is injected into the project's environment as an environment variable (its exact name is shown in the database's Connection tab)
  • The app reaches it over the private network — no code changes needed beyond reading that environment variable

Naming and credentials

DockHosting generates a random username and password for the default database user. You can create additional databases and users within the instance — see Manage.

Next steps

On this page