Sign inSign up

guidoffm/ftp2mqtt

By guidoffm

Updated about 7 years ago

FTP server that publishes received files to an MQTT broker. Maybe used for surveillance cameras.

Image
0

1.3K

guidoffm/ftp2mqtt repository overview

FTP2MQTT

This service acts as FTP server. A surveillance camera can use this FTP server. Each image that is sent from a camera is then published to a MQTT broker.

Options

OptionDefault ValueDescription
MQTT_BROKER_HOST127.0.0.1MQTT broker address
MQTT_BROKER_PORT1883MQTT broker port
MQTT_PUBLISH_SUBJECTcameras/ftpuser/imageSubject the image is published to
FTP_SERVER_PORT2121FTP server port
FTP_SERVER_PASSIVE_PORTS_MIN60000FTP server passive ports min value
FTP_SERVER_PASSIVE_PORTS_MAX60100FTP server passive ports max value
FTP_SERVER_USERNAMENot setFTP server username
FTP_SERVER_PASSWORDNot setFTP server password

If both FTP_SERVER_USERNAME and FTP_SERVER_PASSWORD are set the FTP server accepts only connection with these credentials. Otherwise the server accepts anonymous connections.

Options can be set by using environment variables.

Build

docker build . -t ftp2mqtt

Run

docker run -d -p 2121:2121 -p 60000-60099:60000-60099 -e MQTT_BROKER_HOST=mymqttbroker guidoffm/ftp2mqtt

You must expose at least the listening port for the FTP server and the passive ports range.

Tag summary

Content type

Image

Digest

Size

333 MB

Last updated

about 7 years ago

docker pull guidoffm/ftp2mqtt