This guide uses Docker to run Apache ActiveMQ Classic.
For Docker installation, see Docker.
Create a directory to store your configuration and compose files.
mkdir -p /opt/activemq
cd /opt/activemq
Define a container for ActiveMQ Classic with the official image.
services:
activemq:
image: apache/activemq-classic:6.2.1
container_name: activemq
ports:
- "61616:61616" # OpenWire/JMS port
- "8161:8161" # Web console
environment:
- JAVA_OPTS=-Xmx512m
volumes:
- activemq_data:/opt/activemq/data
restart: unless-stopped
volumes:
activemq_data:
Start the container in the background.
docker compose up -d
Open http://localhost:8161 in your browser.
Default credentials:
adminadminImportant: Change the default credentials immediately in production environments.
activemq_data volume persists broker dataapache/activemq-classic:5.19.2 for Java 11+Running ActiveMQ in containers for production? We help with:
Need help? office@linux-server-admin.com or Contact Us