sftpgo-mirror/docker/sftpgo/debian/README.md
2019-12-27 23:12:44 +01:00

933 B

Dockerfile based on Debian stable

Please read the comments inside the Dockerfile to learn how to customize things for your setup.

You can build the container image using docker build, for example:

docker build -t="drakkan/sftpgo" .

and you can run the Dockerfile using something like this:

docker run --name sftpgo -p 8080:8080 -p 2022:2022 --mount type=bind,source=/srv/sftpgo/data,target=/app/data --mount type=bind,source=/srv/sftpgo/config,target=/app/config --mount type=bind,source=/srv/sftpgo/backups,target=/app/backups drakkan/sftpgo

where /srv/sftpgo/data, /srv/sftpgo/config and /srv/sftpgo/backups are folders on the host system with write access for UID/GID defined inside the Dockerfile. You can choose to create a new user, on the host system, with a matching UID/GID pair or simply do something like:

chown -R <UID>:<GID> /srv/sftpgo/data /srv/sftpgo/config