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
commit694edd52d51f61460117d4f7e4e62e6b990c5e32 (patch)
treeb336d5f902e5607737f2b8045a528e7e041843d9 /templates/docker-compose.yaml.template
parent704f514d253bb3ee1a206b801d22718e9b90261b (diff)
downloadcrupest-694edd52d51f61460117d4f7e4e62e6b990c5e32.tar.gz
crupest-694edd52d51f61460117d4f7e4e62e6b990c5e32.tar.bz2
crupest-694edd52d51f61460117d4f7e4e62e6b990c5e32.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