Hello thank you for responding. After much research myself, I came to believe the dev.docker-compose.yml file was somehow holding me back on the credential issue.
This post confirmed my suspicions.
Thus I resolved it by running docker compose up. I believe the issue persists in dev.docker-compose.yml as this post too states the same.