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
commit5edf355f564de2c8b6f9ab28bd6f77654029f0f3 (patch)
treeb3288e071b60018f3c2eb414327d0a16e008784c /templates/docker-compose.yaml.template
parentfe595d89ca55d08d7d6ae5ac9050cb7faf0eb44e (diff)
downloadcrupest-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.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