diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 0523aef..2618eff 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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: diff --git a/docker/rsync/rsyncd.conf b/docker/rsync/rsyncd.conf new file mode 100644 index 0000000..4d09d5d --- /dev/null +++ b/docker/rsync/rsyncd.conf @@ -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 \ No newline at end of file