title: How to configure vsftpd with docker
body: <p>I have been trying to configure a simple ftp server using the following docker container:</p>
  <p><a href="https://hub.docker.com/r/fauria/vsftpd" rel="nofollow noreferrer">https://hub.docker.com/r/fauria/vsftpd</a></p>
  <p>I deploy the container on an amazon ec2 instance with ports open for 20 and 21.</p>
  <p>my docker-compose is like this:</p>
  <pre><code>version: '3.6'
  services:
      vsftpd:
      image: fauria/vsftpd
      environment:
        - FTP_USER=myuser
        - FTP_PASS=mYp4sS
      ports:
        - 20:20
        - 21:21
      volumes: 
        - /var/app/ftp:/home/vsftpd
        - /var/log/ftp:/var/log/vsftpd
  </code></pre>
  <p>when starting docker I do get the following log and then nothing:</p>
  <pre><code>vsftpd  |   *************************************************
  vsftpd  |   *                                               *
  vsftpd  |   *    Docker image: fauria/vsftpd                *
  vsftpd  |   *    https://github.com/fauria/docker-vsftpd    *
  vsftpd  |   *                                               *
  vsftpd  |   *************************************************
  vsftpd  | 
  vsftpd  |   SERVER SETTINGS
  vsftpd  |   ---------------
  vsftpd  |   ? FTP User: myuser
  vsftpd  |   ? FTP Password: mYp4sS
  vsftpd  |   ? Log file: /var/log/vsftpd/vsftpd.log
  vsftpd  |   ? Redirect vsftpd log to STDOUT: No.
  </code></pre>
  <p>But when I try a ftp connection either with filezilla or event the cli ftp I keep getting a <code>ECONNREFUSED - Connection refused by server</code> issue.</p>
  <p>How can I make the ftp server accessible?</p>