aboutsummaryrefslogtreecommitdiff
path: root/templates/docker-compose.yaml.template
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-19 02:01:34 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-19 02:20:14 +0800
commit89e31c19bb8fca91c54a73ff7a7f4e837d1dbf93 (patch)
treee86894b16145f4b2f127c0a30a7383aaed17a325 /templates/docker-compose.yaml.template
parent29bf91b8f57ec28492bb882d9f4d38fb12c9519a (diff)
downloadcrupest-89e31c19bb8fca91c54a73ff7a7f4e837d1dbf93.tar.gz
crupest-89e31c19bb8fca91c54a73ff7a7f4e837d1dbf93.tar.bz2
crupest-89e31c19bb8fca91c54a73ff7a7f4e837d1dbf93.zip
feat(auto-backup): use coscli.
Diffstat (limited to 'templates/docker-compose.yaml.template')
-rw-r--r--templates/docker-compose.yaml.template12
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