My docker-compose looks like this:
version: \'3.2\' services: mq: hostname: ${HOST_NAME} ports: - \"5671:5671\" - \"5672:5672\" - \"1
I think you have to set username and password from environmental variable or from specific file use -f flag with - (dash) as the filename to read the configuration from stdin.which contains username and password.
-f