mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:45:25 +01:00
67 lines
1.6 KiB
JSON
67 lines
1.6 KiB
JSON
|
{
|
||
|
"description": "Rclone volume plugin for Docker",
|
||
|
"documentation": "https://rclone.org/",
|
||
|
"interface": {
|
||
|
"socket": "rclone.sock",
|
||
|
"types": ["docker.volumedriver/1.0"]
|
||
|
},
|
||
|
"linux": {
|
||
|
"capabilities": [
|
||
|
"CAP_SYS_ADMIN"
|
||
|
],
|
||
|
"devices": [
|
||
|
{
|
||
|
"path": "/dev/fuse"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"network": {
|
||
|
"type": "host"
|
||
|
},
|
||
|
"entrypoint": ["/usr/local/bin/rclone", "serve", "docker"],
|
||
|
"workdir": "/data",
|
||
|
"args": {
|
||
|
"name": "args",
|
||
|
"value": [],
|
||
|
"settable": ["value"]
|
||
|
},
|
||
|
"env": [
|
||
|
{
|
||
|
"name": "RCLONE_VERBOSE",
|
||
|
"value": "0",
|
||
|
"settable": ["value"]
|
||
|
},
|
||
|
{
|
||
|
"name": "RCLONE_CONFIG",
|
||
|
"value": "/data/config/rclone.conf"
|
||
|
},
|
||
|
{
|
||
|
"name": "RCLONE_CACHE_DIR",
|
||
|
"value": "/data/cache"
|
||
|
},
|
||
|
{
|
||
|
"name": "RCLONE_BASE_DIR",
|
||
|
"value": "/mnt"
|
||
|
}
|
||
|
],
|
||
|
"mounts": [
|
||
|
{
|
||
|
"name": "config",
|
||
|
"source": "/var/lib/docker-plugins/rclone/config",
|
||
|
"destination": "/data/config",
|
||
|
"type": "bind",
|
||
|
"options": ["rbind"],
|
||
|
"settable": ["source"]
|
||
|
},
|
||
|
{
|
||
|
"name": "cache",
|
||
|
"source": "/var/lib/docker-plugins/rclone/cache",
|
||
|
"destination": "/data/cache",
|
||
|
"type": "bind",
|
||
|
"options": ["rbind"],
|
||
|
"settable": ["source"]
|
||
|
}
|
||
|
],
|
||
|
"propagatedMount": "/mnt"
|
||
|
}
|