This is a simple STOMP server.
docker build -t efrecon/stomp .
To run with high verbosity:
docker run -it --rm -p 61613:61613 efrecon/stomp -verbose 5
The server has simple support for the following features. To bring up
the full list of options, call it with
Authentication of users through the
-usersoption, which should
contain a list of colon separated user names and password,
Encryption using TLS. Encryption is turned on and controlled using
tls. When set to a negative boolean (
offwill work), traffic is not encrypted. When set to a positive
boolean, traffic is encrypted. When set to
strict, the server
requires the peers to have maching certificates.
To get you going, self-signed certificates can be created using
OpenSSL and the following commands (adapt to your own needs):
openssl genrsa -out server-private.pem 2048 openssl req -new -x509 \ -key server-private.pem -out server-public.pem \ -batch -days 3650 \ -subj "/countryName=SE/stateOrProvinceName=Stockholm/localityName=Kista/organizationName=SICS/commonName=stompserver/emailAddressemail@example.com"
Dockerfile creates a volume called
/data so you can try
mounting this volume onto a local directory, so as to ensure access to
certificates, for example.