add plugin for sync docker

This commit is contained in:
xiaoyaofenfen 2022-06-15 09:58:32 +08:00
parent 9f1e565dae
commit 13daf9480b

View File

@ -2,11 +2,12 @@ version: '3'
services: services:
webdav: webdav:
image: tickstep/aliyunpan-sync:v0.1.5-amd64 image: tickstep/aliyunpan-sync:v0.1.5
container_name: aliyunpan-sync container_name: aliyunpan-sync
restart: always restart: always
volumes: volumes:
- ./data:/home/app/data:rw - ./data:/home/app/data:rw
#- ./plugin/js/sync_handler.js:/home/app/config/plugin/js/sync_handler.js
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
# refresh token # refresh token
@ -21,9 +22,9 @@ services:
- ALIYUNPAN_DOWNLOAD_BLOCK_SIZE=1024 - ALIYUNPAN_DOWNLOAD_BLOCK_SIZE=1024
# 上传数据块大小单位为KB默认为10240KB建议范围1024KB~10240KB # 上传数据块大小单位为KB默认为10240KB建议范围1024KB~10240KB
- ALIYUNPAN_UPLOAD_BLOCK_SIZE=10240 - ALIYUNPAN_UPLOAD_BLOCK_SIZE=10240
# 指定网盘文件夹作为备份目录,建议不要指定根目录 # 指定网盘文件夹作为备份目录,不要指定根目录
- ALIYUNPAN_PAN_DIR=/my_sync_dir - ALIYUNPAN_PAN_DIR=/my_sync_dir
# 备份模式upload(备份本地文件到云盘), download(备份云盘文件到本地), sync(双向同步备份) # 备份模式upload(备份本地文件到云盘), download(备份云盘文件到本地), sync(双向同步备份,慎用!!!)
- ALIYUNPAN_SYNC_MODE=upload - ALIYUNPAN_SYNC_MODE=upload