Fork this repo and modify for your requirement.
Once you setup the metabase environment, add the following environment variables.
MB_DB_TYPE: postgres MB_DB_DBNAME: metabase MB_DB_PORT 5432 MB_DB_USER MB_DB_PASS MB_DB_HOST
Setup the database accordingly