Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 1.08 KB

elasticmq.md

File metadata and controls

77 lines (58 loc) · 1.08 KB

ElasticMQ

References

Docker

Network

docker network create workbench \
  --subnet 10.1.1.0/24

Running

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
docker restart elasticmq
echo -e '[INFO]\thttp://127.0.0.1:9324'

Remove

docker rm -f elasticmq

Tips

TCP State

nmap -p 9324 [hostname]