Skip to content

if i mount /etc/rabbitmq/rabbitmq.conf the container exit #292

Closed
@timrosede

Description

@timrosede

hey,

i tried to configure the consul_discovery plugin.

I added those lines to a local rabbitmq.conf and mounted this file as a Volume to my docker Container.

  rabbitmq:
    image: rabbitmq:3.7
    volumes:
      #- ${PWD}/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
      - ${PWD}/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
      - rabbitmq:/var/lib/rabbitmq
cluster_formation.peer_discovery_backend  = rabbit_peer_discovery_consul
cluster_formation.consul.host = consul
cluster_formation.node_cleanup.only_log_warning = true
cluster_formation.consul.svc_addr_auto = true
cluster_partition_handling = autoheal

that brings me to this:

sed: can't move '/etc/rabbitmq/rabbitmq.confDMidAB' to '/etc/rabbitmq/rabbitmq.conf': Resource busy

i also tried to set the config with some environment variables:

    environment:
      - RABBITMQ_VM_MEMORY_HIGH_WATERMARK=0.25
      - RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="-cluster_formation peer_discovery_backend rabbit_peer_discovery_consul 
        -cluster_formation consul.host consul 
        -cluster_formation node_cleanup.only_log_warning true"

but it does not work too :-( maybe any one can help me a little bit?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions