ustclug/ftp

By ustclug

Updated 10 months ago

FTP site of USTC Linux User Group https://ftp.lug.ustc.edu.cn/

Image
Networking
Security
Integration & delivery
8

10K+

ustclug/ftp repository overview

FTP site of USTC LUG

Feature

  • Public Sharing
  • Private uploading
  • User's home (auth via LDAP)

Supported Protocol

  • HTTP/HTTPS (read only)
  • FTP
  • FTPS
  • SFTP
  • AFP AFP support has been removed.

Deployment

docker run -itd --restart=always \
    -p 20-22:20-22 \
    -p 80:80 \
    -p 40000-40050:40000-40050 \
    -v $LOCAL_DIR/data:/srv/ftp \
    -v $LOCAL_DIR/log:/var/log \
    -v $LOCAL_DIR/home:/home \
    -e PRIVATE_PASSWD=secret \
    -e PASV_ADDRESS=$PUBLIC_IP_ADDRESS \
    ustclug/ftp

Security note: Please bind mount /etc/ssh (-v $LOCAL_DIR/ssh:/etc/ssh) in production, as the container image has its own host SSH keypair public and may gets middle-man attack.

Available Environment Variables
NameImplicationDefault Value
PUBLIC_PASSWDPassword of public account "ftp" (read only)ftp
PRIVATE_USERNAMEPrivate account name (write access)    lug          
PRIVATE_PASSWDPassword of private accountpassword
PASV_ADDRESSFTP PASV Mode Address127.0.0.1

Tag summary

Content type

Image

Digest

sha256:21677596d

Size

253.8 MB

Last updated

10 months ago

docker pull ustclug/ftp