I have started a new project using docker-compose however my migrations and database queries are falling with the error Access denied for user 'data-jobs'@'172.18.0.3' (using password: YES)
I have 2 config files. .env for my laravel configuration and .db.env for my database environment variables. I got this error because I had changed the value in the .env file but not in the .db.env file.
My question is this:
How can I use can I pass MYSQL_PASSWORD and DB_PASSWORD to Laravel and MariaDB using only one config key to prevent me making this mistake again?