最後活躍 1720324175

Backup your portainer config and associated stack files

修訂 4386808b9d7c18726d40ffc9cc400b40eafcc1a7

gistfile1.txt 原始檔案
1version: "3.9"
2services:
3 backup:
4 container_name: portainer-backup
5 image: savagesoftware/portainer-backup:latest
6 environment:
7 TZ: Europe/Paris
8 PUID: 1028
9 PGID: 100
10 PORTAINER_BACKUP_URL: "http://192.168.1.20:9000"
11 PORTAINER_BACKUP_TOKEN: <PORTAINER_TOKEN> # To be replaced by your token
12 PORTAINER_BACKUP_SCHEDULE: "0 0 0,12 * * *"
13 PORTAINER_BACKUP_STACKS: true
14 PORTAINER_BACKUP_OVERWRITE: true
15 command: "schedule"
16 volumes:
17 - <PATH TO SAVE BACKUP>:/backup:rw # Must be replaced by your path to backup filee