version: "3.4"
services:
rclone_backup:
image: rclone/rclone:latest
container_name: rclone
restart: unless-stopped
volumes:
- ./config:/config/rclone
user: "1000:1000"
#command: some type of mount command?
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?
not an expert at docker but if you want the host to see port 8080, don't you need to something like this
ports:
- 8080:8080