diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-19 02:01:34 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-19 02:20:14 +0800 |
commit | 5edf355f564de2c8b6f9ab28bd6f77654029f0f3 (patch) | |
tree | b3288e071b60018f3c2eb414327d0a16e008784c /templates/docker-compose.yaml.template | |
parent | fe595d89ca55d08d7d6ae5ac9050cb7faf0eb44e (diff) | |
download | crupest-5edf355f564de2c8b6f9ab28bd6f77654029f0f3.tar.gz crupest-5edf355f564de2c8b6f9ab28bd6f77654029f0f3.tar.bz2 crupest-5edf355f564de2c8b6f9ab28bd6f77654029f0f3.zip |
feat(auto-backup): use coscli.
Diffstat (limited to 'templates/docker-compose.yaml.template')
-rw-r--r-- | templates/docker-compose.yaml.template | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/docker-compose.yaml.template b/templates/docker-compose.yaml.template index 124c9d5..d55c7c2 100644 --- a/templates/docker-compose.yaml.template +++ b/templates/docker-compose.yaml.template @@ -78,16 +78,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 volumes: - "./data:/data" + secrets: + - auto-backup restart: on-failure:3 mailserver: @@ -203,5 +198,8 @@ volumes: roundcubemail-temp: secrets: + auto-backup: + file: data/config + git-server: file: data/config |