A small and configurable Docker image for a vsftpd server.
All environment variables prefixed with VSFTPD_ will be output to the vsftpd.conf file. That is:
VSFTPD_config_option=config_valuesetsconfig_option=config_valueon vsftpd.conf
ftp:
container_name: ftp
image: josere/vsftpd:latest
environment:
VSFTPD_anon_root: /shared
VSFTPD_listen: 'YES'
VSFTPD_pasv_enable: 'YES'
VSFTPD_pasv_addr_resolve: 'YES'
VSFTPD_pasv_address: ftp.example.com
VSFTPD_pasv_min_port: 21000
VSFTPD_pasv_max_port: 21100
VSFTPD_background: 'NO'
volumes:
- /mnt/hdd:/shared:ro
ports:
- '21:21'
- '21000-21100:21000-21100'