dokku-rabbitmq-plugin
dokku-rabbitmq-plugin copied to clipboard
BROKER_URL environment variable does not contain user name
After deploying a RabbitMQ container, following environment variable are set for the dokku app:
root@host:~#dokku config pusher-dev
=== app config vars ===
API_KEY: 3BBmHukpC4Z5goOotNFgz1IaNJykjp2WSIfmCMLv7WI
BROKER_ADMIN_PORT: ${BROKER_PORT_15672_TCP_PORT}
BROKER_AMQP_PORT: ${BROKER_PORT_5672_TCP_PORT}
BROKER_HOST: ${BROKER_PORT_5672_TCP_ADDR}
BROKER_PASSWORD: cDEsedDVQdY0qoQC
BROKER_PATH: //
BROKER_SCHEME: amqp
BROKER_URL: amqp://${BROKER_USERNAME}:${BROKER_PASSWORD}@${BROKER_PORT_5672_TCP_ADDR}:${BROKER_PORT_15672_TCP_PORT}//
BROKER_USERNAME: admin
which seems to be alright. However, when starting an app container (dokku run app bash
), the corresponding BROKER_URL environment variable does not contain the username:
BROKER_URL=amqp://:[email protected]:15672//
Am I missing something?
that's super weird, can you access the BROKER_USERNAME
variable from your container via bash even if its not in the URL?
I have the same issue. @AlJohri, yes BROKER_USERNAME is set.