Env Variables
- Read env vars from
.envfile or exported environment variables inside your container. - Read the env variable value from
/run/secrets/directory. - Expose a single
rabbitmq_uriwhich has all the necessary info to connect to a RabbitMQ instance.
[!NOTE]
Even though I hate it, but I could not get around having
plain_rabbitmq_uri,rabbitmq_username, andrabbitmq_passwordwhen I am instantiating fromSettingsclass.I tried to prefix them with
_, but then I got this error message:NameError: Fields must not use names with leading underscores; e.g., use 'plain_rabbitmq_uri' instead of '_plain_rabbitmq_uri'