-
Notifications
You must be signed in to change notification settings - Fork 430
rabbitmq-server overwrites config file #341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
RabbitMQ never overwrites a provided configuration file. This image might but you need to provide more evidence than this. |
I don't know how else I can prove it. Neither can I bring back any code to show. Maybe we should just leave it like this. I have no resources to find the source of the generated config (otherwise I would not ask), but it has exactly the same values as the generated config file. Thanks anyway. |
To avoid the image writing a configuration file, you'll want to avoid specifying any of the image-specific environment variables supported by the entrypoint and provide your own configuration file. In your case, it looks like it's just the Line 107 in 46e2f60
You should be able to choose any arbitrary UID as long as the storage you provide has appropriate permissions for that UID (and the configuration file you provide is readable by it). |
Hi all,
I have started using the RabbitMQ 3.7.15 docker image, but I found that rabbitmq-server is overwriting my configuration file (/etc/rabbitmq/rabbitmq.conf) with its generated version.
This is similar to #191. But now in 2019, what is the modern way of setting other parameters, like the clustering peer discovery options?
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_dns
Past solutions recommended avoiding the default docker-entrypoint.sh script and/or not defining any RABBITMQ environmental variables. I'm doing both, but my rabbitmq.conf file still gets overwritten by the default.
I'm avoiding the default entrypoint script by defining my own in dockerfile and have confirmed that the substitute script is being run instead, with
docker ps
. This replacement script currently runs rabbitmq-server directly.I also did the following in my dockerfile, in an attempt to write-protect it:
But then after the docker image has started, ls -l /etc/rabbitmq/rabbitmq.conf will show something like this:
Thanks in advance!
The text was updated successfully, but these errors were encountered: