docker run -e FINERACT_DEFAULT_TENANTDB_HOSTNAME=172.23.0.1 -e FINERACT_HIKARI_JDBC_URL=jdbc:mariadb://
172.23.0.1:3306/fineract_tenants -it apache/fineract:latest /bin/bash
Please note that 172.23.0.1 is the IP address of the host PC, as accessible through docker.
However, the error, attached as a screenshot to this email indicates that
java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
What I understand is that the environment variable, as supplied, isn't being applied by the docker image.
Does anyone know how to solve this issue? For more context, I have tried doing the normal docker container, as instructed in the README.md but that isn't working for me because it's asking for some keys that I am unable to provide.
Thanks