@@ -49,14 +49,16 @@ services:
49
49
# If NO_USER_FTP_POSTFIX is set, USER_FTP_POSTFIX is disabled and the user home directory is exposed over ftp
50
50
# - USER_FTP_POSTFIX=/data
51
51
# - NO_USER_FTP_POSTFIX=true
52
-
53
- # - PUBLIC_HOST=custom-host.domain.tld # optional and only used for passive ftp, defaults to localhost
52
+
53
+ # optional and only used for passive ftp, defaults to 127.0.0.1
54
+ # - PUBLIC_HOST=custom-host.domain.tld
54
55
ports :
55
- # active ftp
56
+ # ftp control
56
57
- " 21:21"
57
- # passive ftp ports, may differ if you configured them differently
58
+ # active ftp
59
+ - " 20:20"
60
+ # passive ftp ports, may differ if you configured them differently with PASSIVE_MIN_PORT_*
58
61
- " 10090-10100:10090-10100"
59
-
60
62
# sftp
61
63
- " 2022:2022"
62
64
volumes :
@@ -87,25 +89,27 @@ Both can be used together, so you can use env vars and/or file-based user creati
87
89
88
90
You can further configure the ftp server using the following environment variables :
89
91
90
- | Variable | Usage |
91
- |:--------------------|:------------------------------------------------------------|
92
- | PASSIVE_MIN_PORT | Minimum used passive port |
93
- | PASSIVE_MAX_PORT | Maximum used passive port |
94
- | PUBLIC_HOST | Public host |
95
- | UMASK | customize the ftp umask (default 022 => chmod 777) |
96
- | USER_FTP_POSTFIX | Override the path exposed over ftp, defaults to /data |
97
- | NO_USER_FTP_POSTFIX | Disable USER_FTP_POSTFIX, ftp access to user home directory |
92
+ | Variable | Default | Usage |
93
+ |:---------------------|:----------|:--------------------------------------------------------------------------------------|
94
+ | PASSIVE_MODE_ENABLED | yes | Set to `yes` to enable and to `no`to disable passive mode support |
95
+ | PASSIVE_MIN_PORT | 10090 | Minimum used passive port |
96
+ | PASSIVE_MAX_PORT | 10100 | Maximum used passive port |
97
+ | ACTIVE_MODE_ENABLED | yes | Set to `yes` to enable and to `no`to disable active mode support |
98
+ | PUBLIC_HOST | 127.0.0.1 | Public host used for passive mode server address |
99
+ | UMASK | 022 | customize the ftp umask |
100
+ | USER_FTP_POSTFIX | *None* | Override the path exposed over ftp, defaults to /data |
101
+ | NO_USER_FTP_POSTFIX | *None* | Disable `USER_FTP_POSTFIX` by setting to any value, ftp access to user home directory |
98
102
99
103
# ### SFTP
100
104
101
105
> For SFTP there is currently no further configuration possible and necessary.
102
106
103
107
# ### General settings
104
108
105
- | Variable | Usage |
106
- |:-------------------|: -----------------------------------------------------------------------------------------------------------|
107
- | BANNER | Banner displayed at connect using SFTP or FTP |
108
- | ACCOUNT_< username> | Set the value to the password to set for < username> , this will create a user to be used with SFTP and FTP. |
109
+ | Variable | Usage |
110
+ |:---------------------|:-- -----------------------------------------------------------------------------------------------------------|
111
+ | BANNER | Banner displayed at connect using SFTP or FTP |
112
+ | ACCOUNT_`{ username}` | Set the value to the password to set for `{ username}` , this will create a user to be used with SFTP and FTP. |
109
113
110
114
# ### Ports
111
115
@@ -115,7 +119,8 @@ Default ports are:
115
119
116
120
| Port | Protocol |
117
121
|:------------|:------------|
118
- | 21 | Active FTP |
122
+ | 20 | Active FTP |
123
+ | 21 | FTP control |
119
124
| 10090-10100 | Passive FTP |
120
125
| 2022 | SFTP |
121
126
0 commit comments