Background:
I'm starting to try web deployment on Docker.
So now I have now:
- mariadb instance to hold all the data, the data directory is set as volume;
- php:fpm instance for individual websites, which volumes are set to the sub-directories of
/var/docker/www
; - nginx front-end as a individual container, volume is set to
/var/docker/www
, configuration volume is set as-v /var/docker/nginx/conf.d /etc/nginx/conf.d
;
So, there is one thing left, I want to give a ftp account to relating customers to access the sub-directories of /var/www
.
For example: /var/docker/www/site1
, or /var/docker/www/site2
Question
So, now I want to make a vsftpd image myself, but I was facing to the below questions:
- How should I set the user permissions? I will have different ftp users, but the www file owners are all set to
root
. - (Newbie question) Should I start the
vsftpd
inside as daemon? Settinglisten=NO
? - How to set the network? Will that be a NAT problem?
Finally, is there a good overall solution on this problem? To deploy a vsftpd instance on docker host?