|
@@ -7,25 +7,25 @@ services:
|
|
# Simulate an application server with an endless loop.
|
|
# Simulate an application server with an endless loop.
|
|
command: sh -c 'while true; do sleep 10; done';
|
|
command: sh -c 'while true; do sleep 10; done';
|
|
volumes:
|
|
volumes:
|
|
- - ./data:/data
|
|
|
|
|
|
+ - ./data:/data:ro
|
|
# RSYNCD Server
|
|
# RSYNCD Server
|
|
rsyncd:
|
|
rsyncd:
|
|
build: .
|
|
build: .
|
|
image: mickaelperrin/rsyncd-server:latest
|
|
image: mickaelperrin/rsyncd-server:latest
|
|
environment:
|
|
environment:
|
|
- # REQUIRED: For user/password authentication
|
|
|
|
- - USERNAME=sftp
|
|
|
|
- - PASSWORD=password
|
|
|
|
|
|
+ # Optional: For user/password authentication
|
|
|
|
+ # - USERNAME=dragonos
|
|
|
|
+ # - PASSWORD=dragonos
|
|
# REQUIRED: Should be the same as the volume mapping of app container
|
|
# REQUIRED: Should be the same as the volume mapping of app container
|
|
- VOLUME_PATH=/data
|
|
- VOLUME_PATH=/data
|
|
# OPTIONAL: If you want to restrict access to the volume in read only mode. (default false)
|
|
# OPTIONAL: If you want to restrict access to the volume in read only mode. (default false)
|
|
- - READ_ONLY=false
|
|
|
|
|
|
+ - READ_ONLY=true
|
|
# OPTIONAL: If you want to chroot the use of rsync. Be sure that your directory structure is compatible.
|
|
# OPTIONAL: If you want to chroot the use of rsync. Be sure that your directory structure is compatible.
|
|
# See documentation
|
|
# See documentation
|
|
# (default no)
|
|
# (default no)
|
|
- - CHROOT=yes
|
|
|
|
|
|
+ - CHROOT=no
|
|
# OPTIONAL: customize the volume name in rsync (default: volume)
|
|
# OPTIONAL: customize the volume name in rsync (default: volume)
|
|
- - VOLUME_NAME=data
|
|
|
|
|
|
+ - VOLUME_NAME=pub
|
|
# OPTIONAL: restrict connection from (default: 0.0.0.0/0)
|
|
# OPTIONAL: restrict connection from (default: 0.0.0.0/0)
|
|
- HOSTS_ALLOW=0.0.0.0/0
|
|
- HOSTS_ALLOW=0.0.0.0/0
|
|
# OPTIONAL: define the user name or user ID that file transfers to and from that module should take place
|
|
# OPTIONAL: define the user name or user ID that file transfers to and from that module should take place
|
|
@@ -35,6 +35,6 @@ services:
|
|
# (default set to GID owner of VOLUME_PATH)
|
|
# (default set to GID owner of VOLUME_PATH)
|
|
# - GROUP_ID = 1000
|
|
# - GROUP_ID = 1000
|
|
ports:
|
|
ports:
|
|
- - 18873:873
|
|
|
|
|
|
+ - 873:873
|
|
volumes_from:
|
|
volumes_from:
|
|
- app
|
|
- app
|