I’m having an issue connecting to the DB from a docker image on a VPS.
I have a nginx reverse proxy with https to a virtual host pointing to the expose port 80, this works fine.
I want to use a custom db host so the host is not localhost nor mysql_leantime.localhost .
but the service is throwing this:
No database connection, check your database credentials in your configuration file.
How can I debug the db connection?
I’m using a modified version of your docker-compose.yml with this environment
- LEAN_DB_HOST=’[DB URL]:[DB PORT]’
- LEAN_DB_USER=’[DB USER]’
- LEAN_DB_PASSWORD=’[DB PASS]’
- LEAN_DB_DATABASE=’[DB NAME]’
I’ve checked the mysql connection with Mysql workbench, works fine.