This commit is contained in:
arielherself 2024-03-19 12:29:33 +08:00
parent 0007bde4a4
commit 5620ff718e
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
gitea_backups gitea-backups/

View File

@ -24,6 +24,8 @@ services:
environment: environment:
BACKUP_FILENAME: backup-%y-%m-%dT%H-%M-%S.tar.gz BACKUP_FILENAME: backup-%y-%m-%dT%H-%M-%S.tar.gz
BACKUP_LATEST_SYMLINK: backup-latest.tar.gz BACKUP_LATEST_SYMLINK: backup-latest.tar.gz
BACKUP_CRON_EXPRESSION: "0 */12 * * *"
BACKUP_RETENTION_DAYS: 7
volumes: volumes:
- gitea:/backup/my-app-backup:ro - gitea:/backup/my-app-backup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro