Configuring two activemqs on docker as primary and secondary

Hi,

Iam trying to run activemqs on docker as one of two is primary and the other is secondary. I need to link them both to communicate each other with network connectors. Earlier i use to do it by giving Hostname on VMs.

Could someone please help how to configure this using Docker.