aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/coscli-config.yaml.template9
-rw-r--r--template/docker-compose.yaml.template4
-rw-r--r--template/rclone.conf.template7
3 files changed, 10 insertions, 10 deletions
diff --git a/template/coscli-config.yaml.template b/template/coscli-config.yaml.template
new file mode 100644
index 0000000..d0768a3
--- /dev/null
+++ b/template/coscli-config.yaml.template
@@ -0,0 +1,9 @@
+cos:
+ base:
+ secretid: ${CRUPEST_AUTO_BACKUP_COS_ACCESS_KEY_ID}
+ secretkey: ${CRUPEST_AUTO_BACKUP_COS_SECRET_ACCESS_KEY}
+ sessiontoken: ""
+ buckets:
+ - name: ${CRUPEST_AUTO_BACKUP_BUCKET_NAME}
+ alias: crupest-backup
+ region: ${CRUPEST_AUTO_BACKUP_COS_REGION}
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template
index fe87da6..af87acc 100644
--- a/template/docker-compose.yaml.template
+++ b/template/docker-compose.yaml.template
@@ -106,14 +106,12 @@ services:
context: ./docker/auto-backup
dockerfile: Dockerfile
pull: true
- args:
- - CRUPEST_AUTO_BACKUP_BUCKET_NAME=${CRUPEST_AUTO_BACKUP_BUCKET_NAME}
tags:
- "crupest/auto-backup:latest"
container_name: auto-backup
volumes:
- "./data:/data"
- - "./rclone.conf:/root/.config/rclone/rclone.conf:ro"
+ - "./coscli-config.yaml:/root/.cos.yaml:ro"
restart: on-failure:3
networks:
- internal
diff --git a/template/rclone.conf.template b/template/rclone.conf.template
deleted file mode 100644
index 38ef2dd..0000000
--- a/template/rclone.conf.template
+++ /dev/null
@@ -1,7 +0,0 @@
-[mycos]
-type = s3
-provider = TencentCOS
-access_key_id = ${CRUPEST_AUTO_BACKUP_COS_ACCESS_KEY_ID}
-secret_access_key = ${CRUPEST_AUTO_BACKUP_COS_SECRET_ACCESS_KEY}
-endpoint = cos.${CRUPEST_AUTO_BACKUP_COS_REGION}.myqcloud.com
-acl = default