Merge pull request #394 from mchangrh/rsync-container

add rsyncd config
This commit is contained in:
Ajay Ramachandran 2021-10-26 22:16:06 -04:00 committed by GitHub
commit 06af78c770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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