Database services

How database Services fit the Applications model; point to Databases section for engines, credentials, backups, and troubleshooting.

Written By Zoro

Last updated 3 days ago

In dFlow, a database is a Service with type Database.

It lives in the same Environment as your App and Docker Services, runs on the same compute, and is created through the same Add service entry points as other types.

This page summarizes how database Services fit the Services section. Engine-specific behavior, Expose, credentials, backups, and troubleshooting are documented under Databases under Databases in the sidebar.

How database Services differ from App and Docker

  • Provisioning: you pick an engine (Postgres, MySQL, MongoDB, and others), Create Service, then Deploy to provision on the server. See Databases overview under Databases in the sidebar.
  • Tabs: database Services show Overview, Logs, Deployments, Backups, and Settings; they do not show Variables, Scaling, Domains, or Volumes like App/Docker Services. Apps read connection data via reference variables on the Appโ€™s Variables tab. See Service settings.
  • Credentials: Internal credentials on Overview are the default for traffic inside the Environment; Expose enables public credentials when something outside dFlow must connect. Details: Databases overview under Databases in the sidebar and Database credentials and connections under Databases in the sidebar.

Create and connect

  1. Create a service: choose Database and an engine.
  2. Create a database service under Databases in the sidebar: task-oriented walkthrough in the Databases section.
  3. Wire your App: Service settings and the per-engine guides linked from Databases overview under Databases in the sidebar.

Custom images

If you need an engine or image dFlow does not offer as a one-click database Service, use a Docker service and manage the image, env vars, and storage yourself.

If something fails

  • Database troubleshooting under Databases in the sidebar
  • Deployment issues under Troubleshooting in the sidebar for failed provisioning deploys
  • Logs under Deployments and Operations in the sidebar on the database Service

Related