docker alpine: improve README

The volume configuration is not required anymore, we have
a default config in /etc/sftpgo and the volume config is
mounted on /srv/sftpgo/config so we always have a default
config in /etc/sftpgo/sftpgo.json.

Anyway to persist server's keys after an image rebuild a
configuration volume is highly recommended
This commit is contained in:
Nicola Murino 2019-09-09 13:24:48 +02:00
parent e79f7010b4
commit e2e122169d

View file

@ -2,8 +2,6 @@
This DockerFile is made to build image to host multiple instances of SFTPGo started with different users.
The volume for the configuration is not mandatory, but it will be necessary to configure SFTPGo with environment variables.
### Example
> 1003 is a custom uid:gid for this instance of SFTPGo
```bash
@ -33,7 +31,7 @@ sudo docker run --name sftpgo \
```
The script `entrypoint.sh` makes sure to correct the permissions of directories and start the process with the right user
Several images can be run with another parameters.
Several images can be run with different parameters.
### Custom systemd script
An example of systemd script is present [here](sftpgo.service), with `Environment` parameter to set `PUID` and `GUID`