|
|
|
@ -5,7 +5,7 @@ Simple container for FTP+TLS+authentication
|
|
|
|
|
## build
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker build . -t my-ftps
|
|
|
|
|
docker build . -t docker.asperti.com/paspo/ftps
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## run
|
|
|
|
@ -16,7 +16,7 @@ docker run -d --name my-ftps \
|
|
|
|
|
-e "MASQUERADE=ftp.mydomain.com" \
|
|
|
|
|
-v "$PWD/auth:/auth" -v "$PWD/ftpdata:/home" \
|
|
|
|
|
-v "$PWD/certs:/certs" \
|
|
|
|
|
my-ftps
|
|
|
|
|
docker.asperti.com/paspo/ftps
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The *MASQUERADE* parameter is the only required one. You can use an IP address (which is discouraged) or a DNS name.
|
|
|
|
@ -28,9 +28,34 @@ docker run -d --name my-ftps \
|
|
|
|
|
-e "MASQUERADE=ftp.mydomain.com" \
|
|
|
|
|
-v "$PWD/auth:/auth" -v "$PWD/ftpdata:/home" \
|
|
|
|
|
-v "/etc/letsencrypt/live/ftp.mydomain.com:/certs" \
|
|
|
|
|
my-ftps
|
|
|
|
|
docker.asperti.com/paspo/ftps
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## docker-compose
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
version: "3"
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
|
|
ftps-server:
|
|
|
|
|
image: docker.asperti.com/paspo/ftps
|
|
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- "21:21"
|
|
|
|
|
- "20:20"
|
|
|
|
|
- "50000-50500:50000-50500"
|
|
|
|
|
volumes:
|
|
|
|
|
- "/srv/ftps/auth:/auth"
|
|
|
|
|
- "/srv/ftps/data:/home"
|
|
|
|
|
- "/etc/letsencrypt/live/ftp.mydomain.com:/certs"
|
|
|
|
|
environment:
|
|
|
|
|
- MASQUERADE=ftp.mydomain.com
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## notes
|
|
|
|
|
|
|
|
|
|
Please note that you have to restart the container whenever the certificate is renewed.
|
|
|
|
|
|
|
|
|
|
## users management
|
|
|
|
|
|
|
|
|
|
To change/set a password, do like this (replace "paolo" with the correct username):
|
|
|
|
|