Multiple analytics DATABASE connections

Metabase supports connecting to multiple PostgreSQL databases for analytics and visualization.

These include two types of databases:

  1. one used exclusively by Metabase to store its metadata (configured via MB_DB_CONNECTION_URI)
  2. others that are connected to Metabase for querying and visualization.

Is there a way to configure these visualization databases directly through the Docker image or by using environment variables?

You can create the Database connections via a config file:

Hey @TonyC ,thanks for the response! I’ve pulled the Metabase Docker image and hosted it on my EC2 instance. Could you guide me on where I should create this config file?

i have configured the env variables as -
ap1Version: v1
data:
MB_DB_DBNAME: ******
MB_DB_HOST: ******
MB_DB_PASS: ******
MB_DB_USER: ******
MB_EMAIL_SMTP_HOST: ******
kind: secret
metadata: ..........