proffapt/mftp

By proffapt

Updated 9 months ago

Dockerised version of mftp available at https://github.com/metakgp/mftp/tree/main/mftp

Image
Monitoring & Observability
0

43

MFTP | My Freaking Training & Placement

Checkout MFTP for the Documentation of the app and most importantly, how to configure environment variables and tokens for it.

Pull the Image

Pull the docker image. docker pull proffapt/mftp

Run the Image
  1. Utilising SMTP to send mails
    • sudo docker run -v /host/mftp_config/env.py:/mftp/env.py -v /host/mftp_config/token.json:/mftp/token.json -v /host/mftp_config/mail_send_token.json:/mftp/mail_send_token.json -v /host/mftp_config/.lsnif:/mftp/.lsnif -v /host/mftp_config/.session:/mftp/.session -d --name mftp proffapt/mftp --smtp
  2. Utilising Gmail API to send mails
    • sudo docker run -v /host/mftp_config/env.py:/mftp/env.py -v /host/mftp_config/token.json:/mftp/token.json -v /host/mftp_config/mail_send_token.json:/mftp/mail_send_token.json -v /host/mftp_config/.lsnif:/mftp/.lsnif -v /host/mftp_config/.session:/mftp/.session -d --name mftp proffapt/mftp --gmail-api
  3. Utilising NTFY to send notifications
    • sudo docker run -v /host/mftp_config/env.py:/mftp/env.py -v /host/mftp_config/token.json:/mftp/token.json -v /host/mftp_config/mail_send_token.json:/mftp/mail_send_token.json -v /host/mftp_config/.lsnif:/mftp/.lsnif -v /host/mftp_config/.session:/mftp/.session -d --name mftp proffapt/mftp --ntfy
  4. Running as a cronjob
    • Add --cron in the above command
    • Add this command into your cronjob using crontab
  • You can also specify --restart=unless-stopped to run the container even on system reboot
  • You can also check in the interactive mode by specifying the -it flag (Optionally combined with --rm flag to remove the container after closing the shell) and removing the -d flag.

Docker Pull Command

docker pull proffapt/mftp