Skip to content

Latest commit

 

History

History
93 lines (72 loc) · 4.78 KB

README.md

File metadata and controls

93 lines (72 loc) · 4.78 KB

ActiveMQ

Docker image for ActiveMQ version 5.14.5.

Please refer to the ActiveMQ Documentation for more in-depth information.

As a quick example this will bring up an instance of ActiveMQ, and allow you to log into the WebConsole on http://localhost:8161 as the user admin with the password password.

docker run --rm -ti -p 8161:8161 islandora/activemq

N.B. if no credentials are given you will not be able to log in via the WebConsole.

Dependencies

Requires islandora/java docker image to build. Please refer to the Java Image README for additional information including additional settings, volumes, ports, etc.

Ports

Port Description
1883 MQTT
5672 AMPQ
8161 WebConsole
61613 STOMP
61614 WS
61616 OpenWire

Volumes

Path Description
/opt/activemq/data AMQ Message Store

Settings

Environment Variable Confd Key Default Description
ACTIVEMQ_AUDIT_LOG_LEVEL /activemq/audit/log/level INFO Log level. Possible Values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE or ALL
ACTIVEMQ_LOG_LEVEL /activemq/log/level INFO Log level. Possible Values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE or ALL
ACTIVEMQ_PASSWORD /activemq/password password See Security: credentials.properties
ACTIVEMQ_USER /activemq/user admin See Security: credentials.properties
ACTIVEMQ_WEB_ADMIN_NAME /activemq/web/admin/name admin See WebConsole: jetty-realm.properties
ACTIVEMQ_WEB_ADMIN_PASSWORD /activemq/web/admin/password password See WebConsole: jetty-realm.properties
ACTIVEMQ_WEB_ADMIN_ROLES /activemq/web/admin/roles admin See WebConsole: jetty-realm.properties

Additional users/groups/etc can be defined by adding more environment variables, following the above conventions:

Environment Variable Confd Key Description
ACTIVEMQ_USER_{USER}_NAME /activemq/user/{USER}/name See Security: users.properties
ACTIVEMQ_USER_{USER}_PASSWORD /activemq/user/{USER}/password See Security: users.properties
ACTIVEMQ_GROUP_{GROUP}_NAME /activemq/group/{GROUP}/name See Security: groups.properties
ACTIVEMQ_GROUP_{GROUP}_MEMBERS /activemq/group/{GROUP}/members See Security: groups.properties
ACTIVEMQ_WEB_USER_{USER}_NAME /activemq/web/user/{USER}/name See WebConsole: jetty-realm.properties
ACTIVEMQ_WEB_USER_{USER}_PASSWORD /activemq/web/user/{USER}/password See WebConsole: jetty-realm.properties
ACTIVEMQ_WEB_USER_{USER}_ROLES /activemq/web/user/{USER}/roles See WebConsole: jetty-realm.properties

N.B. These do not have defaults.

For example to add a new user someone to the WebConsole you would need to define the following:

Environment Variable Confd Key Value
ACTIVEMQ_WEB_USER_SOMEONE_NAME /activemq/web/user/someone/name someone
ACTIVEMQ_WEB_USER_SOMEONE_PASSWORD /activemq/web/user/someone/password password
ACTIVEMQ_WEB_USER_SOMEONE_ROLES /activemq/web/user/someone/roles admin

Logs