artemiscloud / activemq-artemis-broker-image

ActiveMQ Artemis Broker Image Reposifory
Apache License 2.0
10 stars 14 forks source link

expose the ability to use broker properties for extra configuration #17

Closed andytaylor closed 1 year ago

andytaylor commented 2 years ago

Passing a parameter AMQ_PROPERTIES which is a comma separated list of broker properties will create a broker.properties file in the etc dir that the broker will load

tlbueno commented 1 year ago

After discussed this one with @brusdev, I am closing it as it is possible to set the broker properties by setting the JAVA_ARGS_APPEND environment variables and binding a properties file from the host, ie:

docker run -it --rm --name artemis -e AMQ_USER=admin -e AMQ_PASSWORD=admin -e JAVA_ARGS_APPEND='-Dbroker.properties=/opt/amq/broker.properties' -P -v /tmp/broker.properties:/opt/amq/broker.properties activemq-artemis-broker:latest