Took me a day, this is the prize:
version: '3.3'
services:
rclone0:
image: rclone/rclone:latest
volumes:
- ./config:/config/rclone
- ./data:/data:shared
- /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
user: 1000:1000
network_mode: npm_default
container_name: rclone0
command: 'serve webdav xxx: --addr :8080 --user xxx --pass xxx --vfs-cache-mode full --cache-dir=/data/cache/0'
rclone1:
image: rclone/rclone:latest
volumes:
- ./config:/config/rclone
- ./data:/data:shared
- /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
user: 1000:1000
container_name: rclone1
command: 'mount xxx: xxx --allow-other --vfs-cache-mode full --cache-dir=/data/cache1'
Now I want to know, is there a way to avoid the transport endpoint not connected problem?