My docker-compose looks like this:
version: \'3.2\'
services:
mq:
hostname: ${HOST_NAME}
ports:
- \"5671:5671\"
- \"5672:5672\"
- \"1
This seem to be an issue with current rabbitmq
Dockerfile. Particulary sed command seem not work properly on configfile mapped as volume. However as you have control over your rabbitmq.conf
anyway, why not include default user and password to this file
default_user = admin
default_pass = YourStrongPasswort
and remove RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS out of your compose file. This is fastest work-around probably. Just tested, works for me (official rabbitmq:3.7-management).