1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add rsyncd

This commit is contained in:
kev 2015-07-13 20:40:05 +08:00
parent fd16883732
commit 855d50e82b
4 changed files with 30 additions and 0 deletions

16
rsyncd/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
#
# Dockerfile for rsyncd
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U rsync \
&& rm -rf /var/cache/apk/*
COPY rsyncd.* /etc/
VOLUME /data
EXPOSE 873
CMD rsync --daemon --no-detach --log-file /dev/stdout

View File

@ -0,0 +1,7 @@
rsyncd:
image: vimagick/rsyncd
ports:
- "873:873"
volumes:
- data:/data
restart: always

5
rsyncd/rsyncd.conf Normal file
View File

@ -0,0 +1,5 @@
[data]
path = /data
auth users = *
secrets file = /etc/rsyncd.secrets
strict modes = false

2
rsyncd/rsyncd.secrets Normal file
View File

@ -0,0 +1,2 @@
root:root
admin:admin