Databases

Qovery provides access to the most popular SQL and NoSQL databases available on the major cloud providers. Reliability and resiliency are at the heart of their services, so you don't have to worry about your data on Qovery.

Create a database

  1. Navigate to Console

  2. Select your project and environment

  3. Click Add Database button

    Database

  4. Select database type, name, version, mode and accessibility

    Database

  5. Deploy the database using Action deploy button

    Database

Configuration

General

Modes

Databases can operate in two modes:

  • Managed
  • Container

Managed databases are perfect for production - they are provided and managed by major cloud providers like AWS to make sure your production data is well managed.

Container databases are managed by Qovery as Docker containers with attached persistent storage. They are perfect for development and testing, as they are significantly cheaper than services provided by cloud providers.

Please refers to the dedicated database sub-pages to get more information on the supported mode for each of our database types.

Versions

Please refers to the dedicated database sub-pages to get more information on the supported versions and all database configuration specificities.

You can adjust the version of your database in General section of database settings:

Database Version

Accessibility

To make your database secure, you may decide not to expose it publicly.

  • Public access will make your database accessible via the public network
  • Private access will make your database accessible only by applications in your environment

You can configure the accessibility settings in General section of database settings:

Database Accessibility

Resources

CPU

To tweak CPU configuration of your database, navigate to Resource section in database settings:

Database CPU

Memory

To tweak RAM configuration of your database, navigate to Resource section in database settings:

Database Memory

Storage

To tweak the disk space assigned to your database, navigate to Resource section in the database settings:

Database Storage

Credentials and connectivity

When a database is created in your environment, Qovery will automatically create and inject a set of BUILT_IN environment variables containing all the parameters necessary to your application to connect to the database.

This is the list of environment variables and secrets that will be automatically created:

NameDescriptionExample
QOVERY<DATABASE_TYPE><DBID>_DEFAULT_DATABASE_NAMEEnv Var containing the default database namepostgres
QOVERY<DATABASE_TYPE><DBID>_HOSTEnv Var containing the external hostname of the database (if you need access from the outside and the DB is configured with visibility "PUBLIC")zf5206c84-postgresql.oom.sh
QOVERY<DATABASE_TYPE><DBID>_HOST_INTERNALEnv Var containing the internal hostname of the database (if you need access it from within the cluster network)zf5206c84-postgresql
QOVERY<DATABASE_TYPE><DBID>_LOGINEnv Var containing the username of the DBsuperuser
QOVERY<DATABASE_TYPE><DBID>_PORTEnv Var containing the port to be used for connecting to the DB5432
QOVERY<DATABASE_TYPE><DBID>_HOSTSecret containing the external URI to be used for connecting to the DB (if you need access from the outside and the DB is configured with visibility "PUBLIC")sql://root:[email protected]:27017/admin
QOVERY<DATABASE_TYPE><DBID>_HOST_INTERNALSecret containing the internal URI to be used for connecting to the DB (if you need access it from within the cluster network)sql://root:[email protected]:27017/admin
QOVERY<DATABASE_TYPE><DBID>_PASSWORDSecret containing the password of the DBdbsecret

Please note that the built-in variables follow the naming pattern: QOVERY_DATABASETYPE + <your_db_name> + <type_of_variable> where:

  • <your_db_name> is the name of your database
  • <type_of_variable> is the type of variable we inject, e.g. PASSWORD, VERSION, CONNECTION_URI and so on.

To know how to access your database from your application, have a look at the database section.

Delete your database instance

  1. Navigate to Console

  2. Select your environment and database

  3. In database overview, click on Action remove button

    Database Remove

Available Databases

Mongodb
Mysql
Postgresql
Redis