Install Apache ActiveMQ Artemis using Docker Compose

You can use the official Docker Image of Apache ActiveMQ Artemis at https://hub.docker.com/r/apache/activemq-artemis.

The contents of our docker-compose.yaml file for installing ActiveMQ Artemis with Docker Compose will look like this:

We need to expose the 2 default ports of ActiveMQ Artemis and Artemis Console to the outside to be able to use them! In addition, you should also mount 2 folders inside the ActiveMQ container:

  • /data/activemq
  • and /var/log/activemq,

so that we can easily work with it.

The result when running the command “docker compose up” in the directory containing the docker-compose.yaml file with the above content is as follows:

So we have started an ActiveMQ Artemis server with Artemis Console!

Now you can access Artemis Console using the address http://localhost:8161/:

Log in with username and password as artemis, you will see the following results:

Add Comment