-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Description
Hello there.
I'm trying to apply a definitions.json file to a rabbitmq 3.7 management container.
Here my Dockerfile
FROM rabbitmq:3-management
ADD definitions.json /etc/rabbitmq/definitions.json
and here my definitions.json file
{
"vhosts":[
{"name": "/"}
],
"policies":[
{"vhost":"/","name":"ha","pattern":"^test-", "definition":{"ha-mode":"all","ha-sync-mode":"automatic","ha-sync-batch-size":5}}
]
}
When I run the container, it starts correctly but no default user and password are set.
rabbitmqctl list_users
Listing users ...
even if
rabbitmqctl environments shows:
{default_permissions,[<<".*">>,<<".*">>,<<".*">>]},
{default_user,<<"guest">>},
{default_user_tags,[administrator]},
{default_vhost,<<"/">>},
I have tried also to run the container with RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS variables, but no luck.
If I remove the vhosts section in definitions.json . container doesn' start and shows error
{error,<<"Please create virtual host \"\" prior to importing definitions.">>}
So has definitions.json precedence instead of rabbitmq.conf? Why empty database is not initialized BEFORE import definitions.json?
Thanks
Vincenzo
Metadata
Metadata
Assignees
Labels
No labels