Skip to main content
This guide will show you how to provision and connect to two different databases on Upsun:
  • PostgreSQL
  • Oracle MySQL

1. Branch

Like all updates to your Upsun projects, first create a new dedicated environment to test this change.

2. Install the Node.js package

3. Add a new service

Add a new service to your .upsun/config.yaml file:

4. Add a new relationship

Add a new relationship to your .upsun/config.yaml file to allow access to the new service

5. Update .environment

When you previously ran upsun project:init, the command generated some Strapi-specific environment variables:
.environment
Upsun will actually generate service credentials automatically for you in the runtime container, so we don’t need the first half of this file anymore. Remove the first block (pertaining to DATABASE credentials). Then, add a single additional variable that will set the DATABASE_CLIENT variable at the appropriate time:
.environment

6. Push to the environment

Commit and push the changes to the Upsun environment:
If you are using Upsun as your primary remote, you can use the upsun branch and upsun push commands directly. If instead you had already set up an integration to GitHub, GitLab or Bitbucket, make sure to open a pull/merge request to judge the revision.
Last modified on March 18, 2026