Commit be5b98f0 authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Fixing vsftp.

parent 2ad0d964
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -172,7 +172,9 @@ services:
   image: esgfhub/esgf-vsftp:${ESGF_VERSION}
   container_name: ftp 
   ports:
     - "20:20"
     - "21:21"
     - "12020-12025:12020-12025" 
   networks:
     - default
   volumes:
+5 −0
Original line number Diff line number Diff line
@@ -10,10 +10,15 @@ RUN yum -y update && \
    yum clean all

# use anonymous-only, read-only configuration
# configuration file: /etc/vsftpd/vsftpd.conf
# data directory: /var/ftp/pub
# log file: /var/log/xferlog
COPY conf/vsftpd.conf /etc/vsftpd/vsftpd.conf

EXPOSE 20 21
EXPOSE 12020 12021 12022 12023 12024 12025

# start vsftp with a script so the container does not exit

ADD scripts/docker-entrypoint.sh   /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
+8 −0
Original line number Diff line number Diff line
@@ -134,5 +134,13 @@ anon_max_rate=2048000
# If vsftpd is in standalone mode, this is the maximum number of clients which may be connected from the same source internet address. A client will get an error message if they go over this limit.
# Default: 0 (unlimited)
max_per_ip=5
max_clients=10

# ESGF: enable listing and download
dirlist_enable=YES
download_enable=YES

# ESGF: set range for data ports
pasv_enable=Yes
pasv_min_port=12020
pasv_max_port=12025