mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
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:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
This DockerFile is made to build image to host multiple instances of SFTPGo started with different users.
|
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
|
### Example
|
||||||
> 1003 is a custom uid:gid for this instance of SFTPGo
|
> 1003 is a custom uid:gid for this instance of SFTPGo
|
||||||
```bash
|
```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
|
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
|
### Custom systemd script
|
||||||
An example of systemd script is present [here](sftpgo.service), with `Environment` parameter to set `PUID` and `GUID`
|
An example of systemd script is present [here](sftpgo.service), with `Environment` parameter to set `PUID` and `GUID`
|
||||||
|
|||||||
Reference in New Issue
Block a user