add rsyncd config

This commit is contained in:
Michael C 2021-10-26 21:55:32 -04:00
parent d06762418e
commit 65fa663a1a
No known key found for this signature in database
GPG key ID: FFB04FB3B878B7B4
2 changed files with 24 additions and 0 deletions

View file

@ -28,6 +28,15 @@ services:
- 3241:3000
volumes:
- ./newleaf/configuration.py:/workdir/configuration.py
rsync:
image: mchangrh/rsync:latest
container_name: rsync
restart: always
ports:
- 873:873
volumes:
- ./rsync/rsync.conf:/etc/rsync.conf
- ./database-export/:/mirror
volumes:
database-data:

15
docker/rsync/rsyncd.conf Normal file
View file

@ -0,0 +1,15 @@
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log
# replace with user accessing the files
[sponsorblock]
use chroot = no
max connections = 10
# path to mirrored files
path = /mirror
comment = sponsorblock-database
read only = true
refuse options = c delete zl
# disallow checksumming and compression level to reduce CPU/IO load
# disallow deleting files clientside