1
0
Fork
You've already forked docker-rsyncd
0
A basic docker container that accepts file upload using rsync
This repository has been archived on 2025年01月22日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Shell 53.7%
Dockerfile 46.3%
Jakob Meier ba8f53e671
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Updated container image name & link
2023年06月04日 17:46:08 +02:00
examples Added static-file-server example 2023年06月04日 15:03:12 +02:00
.gitignore Added README 2023年06月04日 15:03:32 +02:00
.woodpecker.yml Added woodpecker-ci to autobuild images 2023年06月04日 15:05:32 +02:00
docker-compose.yml Updated container image name & link 2023年06月04日 17:46:08 +02:00
docker-entrypoint.sh Added ability to rename bucket/module 2023年06月04日 15:47:59 +02:00
Dockerfile Added ability to rename bucket/module 2023年06月04日 15:47:59 +02:00
LICENSE Added MIT License 2023年06月04日 15:03:01 +02:00
README.org Updated container image name & link 2023年06月04日 17:46:08 +02:00

docker-rsyncd

A basic docker container that accepts file upload using rsync.

Usage

You can run the container as you would any other docker container:

doas docker run -v ./demo:/storage -p 873:873 -it rsyncd

By default this will accept connections as the user deploy, with the password deploy as well.

But the container exposes following environment variables:

  • RSYNC_USER, the username used by rsync for authentication
  • RSYNC_PASS, the password used by rsync for authentication
  • HOST_USER, used to set file permission of uploaded files. (Should match the UID of the host user)
  • RSYNC_CONFIG, can be used to overwrite the path to the rsyncd.conf file. (You probably do not need to change this, but if you want to use a custom config, you'll have to change this. Keep in mind that changing this also means that you have to manage authentication yourself)
  • BUCKET_NAME, can be used to change the rsync module name. Defaults to storage

If you prefer using docker compose, you might want to check out the docker-compose example, where we combine rsyncd with nginx to build a static file deployment server.

Building

In case you are not happy with the prebuild images, you can manually build the container:

The easiest way is marking the Dockerfile as executable, and then running it

chmod +x Dockerfile
./Dockerfile

But if you do not feel confident with marking Dockerfiles as executable, you can also use docker build directly

docker build . -t docker-rsyncd