Hello,
Thanks for providing a very complete set of code and configuration to see this issue.
I forked the repository and simplified the docker compose file to only start RabbitMQ, so that I can confirm that the user and password are set correctly:
I then started it up, and exec'd into the running container to verify:
root@fdaeccf96a12:/# rabbitmqctl eval 'os:getenv("RABBITMQ_DEFAULT_USER").'
"rabbitmq"
root@fdaeccf96a12:/# rabbitmqctl eval 'os:getenv("RABBITMQ_DEFAULT_PASS").'
"123456"
root@fdaeccf96a12:/# rabbitmqctl authenticate_user rabbitmq 123456
Authenticating user "rabbitmq" ...
Success
So, it seems that your user and password are indeed created correctly. My guess now is that your Spring application is not being configured correctly.
I tried running docker compose up on the entire original project but ran into errors. Not sure why.
Thanks,
Luke