This is a simple FTPS server preconfigured for single user mode secured by default with TLS > 1.0.
Inspired by fauria/docker-vsftpd and onjin/docker-alpine-vsftpd
This image contains vsftpd server configured with only one user files with volume /home/${FTP_USER}
. Password is set from ${FTP_PASSWORD}
env variable or generated if not provided.
Passive Mode is enabled by default. Internally the port range 10090-10100 is predefined for this purpose.
The SSL configuration needs pre generated valid ssl keys. Private key should be put into /etc/vsftpd/vsftpd.key
, and the public certificate /etc/vsftpd/vsftpd.crt
. If no keys provided, one temporary key will be generated at startup. Server is configured to be rejecting SSL and TLS1.0 protocols (versions).
Logs are redirected from file configured within the /etc/vsftpd/vsftpd.conf
(parameter xferlog_file
) to STDOUT of the container.
docker-compose build
docker-compose up