docker network create workbench \
--subnet 10.1.1.0/24
docker run -d \
$(echo "$DOCKER_RUN_OPTS") \
-h elasticmq \
-p 9324:9324 \
--name elasticmq \
--network workbench \
docker.io/softwaremill/elasticmq:0.15.7
docker exec -i elasticmq /bin/sh << EOSHELL
cat << EOF > /opt/elasticmq.conf
include classpath("application.conf")
rest-sqs {
enabled = true
bind-port = 9324
bind-hostname = "0.0.0.0"
sqs-limits = strict
}
queues {
test_queue {
defaultVisibilityTimeout = 3 seconds
delay = 1 seconds
receiveMessageWait = 1 seconds
}
}
EOF
EOSHELL
echo -e '[INFO]\thttp://127.0.0.1:9324'