-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
75 lines (71 loc) · 1.83 KB
/
compose.yml
File metadata and controls
75 lines (71 loc) · 1.83 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
server:
image: rust
ports:
- "8080:80"
- "8443:443"
- "2220:22"
networks:
- mynet
hostname: server
working_dir: /app
command: sh -c "apt-get update && apt-get -y install rsync && apt-get install zstd && cargo build --release && /app/target/release/redundinator_web && fg"
volumes:
- type: bind
source: ./
target: /app
- type: bind
source: ./data/dockerVolumes/server/
target: /home/files
environment:
REDUNDINATOR_CONFIG_FILE_PATH: /app/data/config.json
REDUNDINATOR_LOG_PATH: /app/data/log
REDUNDINATOR_STORAGE_PATH: /app/data/serverFiles/backupStorage
REDUNDINATOR_EXPORT_PATH: /app/data/serverFiles/exports
REDUNDINATOR_UNEXPORT_PATH: /app/data/serverFiles/unexports
client1:
image: vimagick/rsyncd
networks:
- mynet
hostname: client1
ports:
- "2221:22"
volumes:
- type: bind
source: ./data/dockerVolumes/client1/
target: /home/files
- type: bind
source: ./data/dockerConfigs/rsyncd.conf
target: /etc/rsyncd.conf
- type: bind
source: ./data/dockerConfigs/rsyncd.secrets
target: /etc/rsyncd.secrets
client2:
image: alpine
networks:
- mynet
hostname: client2
ports:
- "2222:22"
volumes:
- type: bind
source: ./data/dockerVolumes/client2/
target: /home/files
command: tail -f /dev/null
client3:
image: alpine
networks:
- mynet
hostname: client3
ports:
- "2223:22"
volumes:
- type: bind
source: ./data/dockerVolumes/client3_main/
target: /home/files
- type: bind
source: ./data/dockerVolumes/client3_hugefiles/
target: /mnt/archive/files
command: tail -f /dev/null
networks:
mynet: {}