mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add rsyncd
This commit is contained in:
parent
fd16883732
commit
855d50e82b
16
rsyncd/Dockerfile
Normal file
16
rsyncd/Dockerfile
Normal 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
|
7
rsyncd/docker-compose.yml
Normal file
7
rsyncd/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
rsyncd:
|
||||
image: vimagick/rsyncd
|
||||
ports:
|
||||
- "873:873"
|
||||
volumes:
|
||||
- data:/data
|
||||
restart: always
|
5
rsyncd/rsyncd.conf
Normal file
5
rsyncd/rsyncd.conf
Normal file
@ -0,0 +1,5 @@
|
||||
[data]
|
||||
path = /data
|
||||
auth users = *
|
||||
secrets file = /etc/rsyncd.secrets
|
||||
strict modes = false
|
2
rsyncd/rsyncd.secrets
Normal file
2
rsyncd/rsyncd.secrets
Normal file
@ -0,0 +1,2 @@
|
||||
root:root
|
||||
admin:admin
|
Loading…
Reference in New Issue
Block a user