-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (31 loc) · 925 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (31 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
rsyncd:
container_name: rsyncd
restart: always
environment:
# (optional) - use only if non-default values should be used
RSYNC_TIMEOUT: 300
RSYNC_PORT: 873
RSYNC_MAX_CONNECTIONS: 10
# (optional) - global username and password
RSYNC_PASSWORD: foobar
RSYNC_USERNAME: rsync
# ID_NAME is the only required parameter for each rsync module
MOD1_NAME: Backup_From
MOD1_ALLOW: 192.168.1.0/24
MOD1_READ_ONLY: "true"
MOD1_VOLUME: /vol2
MOD2_EXCLUDE: /backup
MOD2_USERNAME: test
MOD2_PASSWORD: secret
MOD2_UID: nobody
MOD2_GID: nobody
MOD2_NAME: Backup_To
MOD2_ALLOW: 192.168.1.0/24
MOD2_VOLUME: /vol
MOD2_READ_ONLY: "false"
volumes:
- /data:/vol2
- /data/backup:/vol
ports:
- "873:873"
image: jazzdd/rsyncd