-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.48 KB
/
docker-compose.yml
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
version: "3.8"
services:
rclone:
image: rclone/rclone:latest
container_name: rclone
volumes:
- ./config:/config/rclone
- ./logs:/logs
- ./cache:/root/.cache/rclone # This is for the WebUI, not VFS
- /:/hostfs:rshared
- /var/cache/rclone:/vfsCache
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /etc/fuse.conf:/etc/fuse.conf:ro
devices:
- /dev/fuse:/dev/fuse:rwm
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
command:
- rcd
- --rc-web-gui
- --rc-web-gui-no-open-browser
- --rc-addr=:5572
- --rc-user=AGOODUSERNAME
- --rc-pass=AGOODPASSWORD
- --log-file=/logs/rclone.log
- --log-level=NOTICE
- --cache-dir=/vfsCache
networks:
- reverse-proxy-network # Optional
- rclone-net
# If not using reverse proxy, provide a host:container port for --rc-addr
#ports:
# - 5572:5572
environment:
- TZ=America/New_York
restart: unless-stopped
rclone_initializer:
image: ghcr.io/coanghel/rclone-docker-automount/rclone-init:latest
container_name: rclone_initializer
environment:
- RCLONE_USERNAME=AGOODUSERNAME
- RCLONE_PASSWORD=AGOODPASSWORD
- RCLONE_PORT=5572
- PUID=1000
- PGID=1000
restart: unless-stopped
depends_on:
- rclone
networks:
- rclone-net
networks:
reverse-proxy-network:
name: reverse-proxy-network
external: true
rclone-net: