This project provides instructions and tools to get a single Solace PubSub+ software message broker Docker container up-and-running on a desktop using Docker Compose.
If you are interested in setting up message brokers in an High Availability (HA) redundancy group, take a look at Configure High-availability Groups Using Docker Compose.
The example shown, which makes use of Solace PubSub+ Standard, is suitable for use with up to 100 client connections. However, a maximum of 1,000 client connections can be configured on your platform, provided appropriate resources have been provisioned. For more information about system requirements, see Editions of PubSub+ Event Broker: Software and System Resource Requirements.
You must have installed one of:
Ensure that Docker Compose is running by entering the following command:
docker-compose --help
If the help text is not displayed, you may need to install Docker Compose. See Install Docker Compose for instructions.
Clone the GitHub repository containing the Docker Compose template:
git clone https://github.com/SolaceLabs/solace-single-docker-compose.git
cd solace-single-docker-compose/template
Run the following command to create a PubSub+ software message broker using the Compose template:
docker-compose -f PubSubStandard_singleNode.yml up -d
The Compose template runs a message broker named pubSubStandardSingleNode
, using the latest
PubSub+ Standard image pulled from Docker Hub, creates an admin
user with global access permissions, and publishes the following message broker container ports to the same ports on the host:
For more information about the default ports used for each service, refer to Software Message Broker Configuration Defaults. Once the container is created, it will take about 60 seconds for the message broker to finish activating.
Note: On MacOS Big Sur and later, port 55555 (the default SMF port for the software broker) is blocked. If this port is mapped to a port on a Docker container, the container fails to start, either silently or with a "port in use" error. To avoid this problem with MacOS Big Sur, map the SMF port to a different port on the host.
You can access the Solace management tool, PubSub+ Manager, or the Solace CLI to start issuing configuration or monitoring commands on the message broker.
Solace PubSub+ Manager management access:
admin
with default password admin
.Solace CLI management access:
docker exec
command:
docker exec -it pubSubStandardSingleNode /usr/sw/loads/currentload/bin/cli -A
solace> enable
solace# config
solace(configure)#
You now have a message broker Docker container with a basic configuration that is ready for messaging tasks.
To familiarize yourself with the some of the features of PubSub+ software message brokers and appliances, see Best Practices and the Feature Index.
When you are feeling comfortable with your message broker, you can test messaging using the Solace SDKPerf application. You can download SDKPerf from the dev.solace.com Downloads page.