Hi,

depending on what you need to change, you could probably use 'bin/artemis 
create' to generate correct broker.xml in the first place. This is what 
docker-run.sh script with EXTRA_ARGS does.
Check available options at 
https://activemq.apache.org/components/artemis/documentation/latest/using-server.html#creating-a-broker-instance

-- 
    Vilius

-----Original Message-----
From: Marko Lazić <zila...@gmail.com> 
Sent: Thursday, March 9, 2023 12:04 PM
To: users@activemq.apache.org
Subject: Artemis - broker.xml configuration on Docker

Hello!


I’ve built Artemis 2.19.0 image from apache/activemq-artemis: Mirror of Apache 
ActiveMQ Artemis (github.com) <https://github.com/apache/activemq-artemis>. I 
have problem with configuring the broker.xml file on Docker. I want maybe to 
define some addresses, queues and change some address settings. My intuitive 
try was to mount a /var/lib/artemis-instance/etc/broker.xml but I've got an 
error on container startup that the artemis executable does not exist, as 
mounting prevents it from creating. The activemq-artemis/artemis-docker has a 
Mapping point section but it mentions that you can mount the whole instance via 
/var/lib/artemis-instance. I just want to change only few lines in the 
broker.xml file. Is there a way to to mount only my custom broker.xml file on 
startup?



Kind regards
Marko

Reply via email to