Start RabbitMQ
docker run -d --rm -p 5672:5672 -p 15672:15672 --name mq rabbitmq:3.7-management
Start application
docker run -dit -p 2121:2121 --link mq -e rabbitmq_hostname=mq raphexion/ftp2rabbitmq
rebar3 shell
For development purposes you can create a client that listens to the queue.
Please note that foobar
must be the same as the username when logging into
the ftp server.
rabbitmq2debug:start_link("data", "ftpdata", "ftp_data1", "#").
rabbitmq2debug:start_link("info", "ftpinfo", "ftp_info1", "#").
export rabbitmq_username="guest"
export rabbitmq_password="guest"
export rabbitmq_hostname="localhost"
export rabbitmq_port="5672"