Skip to content

...add a new remote database

MariusDanner edited this page Feb 18, 2020 · 3 revisions

Every garden environment has its own value file which can be found in services/backend/values-{env.name}.yaml. You can add data sources for each environment by changing dataSourceConnections: {} to:

  dataSourceConnections:
    - name: dialect+driver://SYSTEM:password@host:30015

This way you can conveniently add as many data sources to your environment as you want. name will be displayed in the user interface. dialect+driver: connection type such as postgresql, hana+pyhdb, sqlite or mysql Example of a whole values.yaml:

config:
  dataSourceConnections:
    - hana: hana+pyhdb://SYSTEM:password@host:30015
    - another_pg: postgresql://postgres:password@host/db

⚠️ This change needs to be done before you deploy the environment. Otherwise you have to redeploy.

In case you use an external dialect you need to add it to the requirements.txt.