forked from fauria/docker-vsftpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ ARG USER_ID=14 | |
ARG GROUP_ID=50 | ||
|
||
MAINTAINER Fer Uria <[email protected]> | ||
LABEL Description="vsftpd Docker image based on Centos 7. Supports passive mode and virtual users." \ | ||
LABEL Description="vsftpd Docker image based on Centos 7. Supports passive mode, SSL and virtual users." \ | ||
License="Apache License 2.0" \ | ||
Usage="docker run -d -p [HOST PORT NUMBER]:21 -v [HOST FTP HOME]:/home/vsftpd fauria/vsftpd" \ | ||
Version="1.0" | ||
|
@@ -30,6 +30,9 @@ ENV LOG_STDOUT **Boolean** | |
ENV FILE_OPEN_MODE 0666 | ||
ENV LOCAL_UMASK 077 | ||
ENV REVERSE_LOOKUP_ENABLE YES | ||
ENV SSL_ENABLE NO | ||
ENV TLS_CERT cert.pem | ||
ENV TLS_KEY key.pem | ||
|
||
COPY vsftpd.conf /etc/vsftpd/ | ||
COPY vsftpd_virtual /etc/pam.d/ | ||
|
@@ -41,6 +44,7 @@ RUN chown -R ftp:ftp /home/vsftpd/ | |
|
||
VOLUME /home/vsftpd | ||
VOLUME /var/log/vsftpd | ||
VOLUME /etc/vsftpd/cert | ||
|
||
EXPOSE 20 21 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ services: | |
volumes: | ||
- ./home:/home/vsftpd | ||
- ./logs:/var/log/vsftpd | ||
- ./cert:/etc/vsftpd/cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters