diff options
author | crupest <crupest@outlook.com> | 2022-11-23 20:06:23 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-23 20:06:23 +0800 |
commit | 14c2bc9dd999c0dc83f741eab773f99d51177e1a (patch) | |
tree | 4688d77820194213887a7b2c2a615ec63b67848f /template | |
parent | cdfc8aee50cf713f217656280de07f3e48db1ab5 (diff) | |
download | crupest-14c2bc9dd999c0dc83f741eab773f99d51177e1a.tar.gz crupest-14c2bc9dd999c0dc83f741eab773f99d51177e1a.tar.bz2 crupest-14c2bc9dd999c0dc83f741eab773f99d51177e1a.zip |
Fix coscli.
Diffstat (limited to 'template')
-rw-r--r-- | template/coscli-config.yaml.template | 9 | ||||
-rw-r--r-- | template/docker-compose.yaml.template | 5 |
2 files changed, 5 insertions, 9 deletions
diff --git a/template/coscli-config.yaml.template b/template/coscli-config.yaml.template deleted file mode 100644 index d0768a3..0000000 --- a/template/coscli-config.yaml.template +++ /dev/null @@ -1,9 +0,0 @@ -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 af87acc..bb8ac3f 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -106,6 +106,11 @@ services: context: ./docker/auto-backup dockerfile: Dockerfile pull: true + args: + - CRUPEST_AUTO_BACKUP_COS_SECRET_ID=${CRUPEST_AUTO_BACKUP_COS_SECRET_ID} + - CRUPEST_AUTO_BACKUP_COS_SECRET_KEY=${CRUPEST_AUTO_BACKUP_COS_SECRET_KEY} + - CRUPEST_AUTO_BACKUP_COS_REGION=${CRUPEST_AUTO_BACKUP_COS_REGION} + - CRUPEST_AUTO_BACKUP_BUCKET_NAME=${CRUPEST_AUTO_BACKUP_BUCKET_NAME} tags: - "crupest/auto-backup:latest" container_name: auto-backup |