mirror of
https://github.com/rclone/rclone.git
synced 2024-12-15 05:44:18 +08:00
20 lines
635 B
SYSTEMD
20 lines
635 B
SYSTEMD
|
[Unit]
|
||
|
Description=Docker Volume Plugin for rclone
|
||
|
Requires=docker.service
|
||
|
Before=docker.service
|
||
|
After=network.target
|
||
|
Requires=docker-volume-rclone.socket
|
||
|
After=docker-volume-rclone.socket
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/rclone serve docker
|
||
|
ExecStartPre=/bin/mkdir -p /var/lib/docker-volumes/rclone
|
||
|
ExecStartPre=/bin/mkdir -p /var/lib/docker-plugins/rclone/config
|
||
|
ExecStartPre=/bin/mkdir -p /var/lib/docker-plugins/rclone/cache
|
||
|
Environment=RCLONE_CONFIG=/var/lib/docker-plugins/rclone/config/rclone.conf
|
||
|
Environment=RCLONE_CACHE_DIR=/var/lib/docker-plugins/rclone/cache
|
||
|
Environment=RCLONE_VERBOSE=1
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|