mirror of
https://github.com/Fishwaldo/docker-rsync.git
synced 2025-03-15 19:42:44 +00:00
docs: add configuration details
This commit is contained in:
parent
7b6ba17b06
commit
5830ae22d2
1 changed files with 15 additions and 4 deletions
19
README.md
19
README.md
|
@ -1,13 +1,24 @@
|
|||
# rsync
|
||||
|
||||
A simple rsync server that runs inside Docker. It is intended to be used as a volume and shared among containers where
|
||||
A minimalist image with rsync daemon. It is intended to be used as a volume and shared among containers where
|
||||
standard volume sharing results in poor read performance.
|
||||
|
||||
# Usage
|
||||
|
||||
The simplest use case is to run the image and map its 873 port:
|
||||
|
||||
```$ docker run stefda/rsync -p 873:873```
|
||||
```bash
|
||||
$ docker run stefda/rsync -p 873:873
|
||||
```
|
||||
|
||||
The command above will spin up a container that listens on port 873 for rsync connections. To push files into the
|
||||
container, you may use `rsync -rtR <file-or-directory> rsync://<docker-host-ip>:873/volume`.
|
||||
The command above spins up a container that will listen on port 873 for connections over the native rsync protocol.
|
||||
Syncing files is then as easy as `rsync -rtR <file-or-directory> rsync://<docker-host-ip>:873/volume`.
|
||||
|
||||
# Configuration
|
||||
|
||||
The module path, owning user, group and allowed hosts are all configurable via environmental variables. Launch fully
|
||||
customised container like so:
|
||||
|
||||
```bash
|
||||
$ docker run stefda/rsync -p 873:873 -e VOLUME=/my/volume -e USER=www-data -e GROUP=www-data -e ALLOW="192.168.0.0/16 10.0.0.0/16"
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue