Hi,
I created the following and simple docker-compose file:
rabbitmq:
hostname: rabbitmq
container_name: RabbitMQ
image: rabbitmq:3.11.0-management-alpine
volumes:
- "./rabbitmq/config/custom.conf:/etc/rabbitmq/conf.d/custom.conf"
- "./rabbitmq/config/definitions.json:/etc/rabbitmq/definitions.json"
networks:
- backend
My custom.conf file looks like this:
default_pass = guest
default_user = guest
When running the docker-compose up command, the container is created, but rabbitmq is not starting because of this error:
2022-10-03 19:13:38.787413+00:00 [error] <0.132.0> Error parsing configuration:
2022-10-03 19:13:38.810851+00:00 [error] <0.132.0> - Syntax error in /etc/rabbitmq/conf.d/custom.conf after line 1 column 1, parsing incomplete
2022-10-03 19:13:38.810892+00:00 [error] <0.132.0> Are these files using the Cuttlefish format?
BOOT FAILED
===========
Error during startup: {error,failed_to_parse_configuration_file}
2022-10-03 19:13:38.813985+00:00 [error] <0.132.0>
2022-10-03 19:13:38.813985+00:00 [error] <0.132.0> BOOT FAILED
2022-10-03 19:13:38.813985+00:00 [error] <0.132.0> ===========
2022-10-03 19:13:38.813985+00:00 [error] <0.132.0> Error during startup: {error,failed_to_parse_configuration_file}
2022-10-03 19:13:38.813985+00:00 [error] <0.132.0>
There are no strange character or anything else in the config file. What is the problem and how to solve it?