Custom database instance in docker container

Dear experts, I have started exploring docker deploy for mendix using docker buildpack. I tried to use postgres as the database and the endpoint goes like this. postgres:mendix:mendix@db:5432/mendix. I tried to change the database name to mendix to my defined name and the container failed to start reporting database cannot be reached. Is there any possibility to have the database instance name other than mendix. I am unable to find any startup scripts exposed while running postgres container that executes create database command Can someone throw light on how to achieve this ? Thank you for your time. Regards, Chengaiah.
1 answers

Seems there is an environment variable to achieve this :)


Make sure the health checks are updated accordingly to avoid test errors.