From 3f5fb71020e9e776890007fab44e1ae83a23211a Mon Sep 17 00:00:00 2001 From: john Date: Fri, 10 Apr 2026 19:53:10 +0100 Subject: [PATCH] Add restic/docker-compose.yml --- restic/docker-compose.yml | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 restic/docker-compose.yml diff --git a/restic/docker-compose.yml b/restic/docker-compose.yml new file mode 100644 index 0000000..97d6faf --- /dev/null +++ b/restic/docker-compose.yml @@ -0,0 +1,55 @@ +services: + backup: + image: mazzolino/restic + container_name: restic + hostname: gamma + environment: + RUN_ON_STARTUP: "true" #change as you wish + BACKUP_CRON: "0 */12 * * *" #this is twice daily, i.e., every 12 hours + RESTIC_REPOSITORY: /restic + RESTIC_PASSWORD: MY_SUPER_LONG_PASSWORD + RESTIC_BACKUP_SOURCES: /mnt/volumes + RESTIC_COMPRESSION: auto + RESTIC_BACKUP_ARGS: >- + --tag restic-proxmox #add tags, whatever you need to mark backups + --verbose + RESTIC_FORGET_ARGS: >- #change as required + --keep-last 10 + --keep-daily 7 + --keep-weekly 5 + --keep-monthly 12 + TZ: Europe/London + volumes: + - /home/ubuntu/truenas/Restic-Proxmox-Backup:/restic #change the left hand side to where you want to store the backups. As you can see I'm storing it on my NAS that is mounted to the host /home/truenas + - /home/ubuntu/truenas/Restic-Proxmox-Backup/tmp-for-restore:/tmp-for-restore #USE THIS FOLDER FOR RESTORE - CAN VIEW EACH CONTAINER + - /home/ubuntu/docker:/mnt/volumes:ro + security_opt: + - no-new-privileges:true + + prune: + image: mazzolino/restic + container_name: restic-prune + hostname: your_host_name + environment: + RUN_ON_STARTUP: "true" + PRUNE_CRON: "0 0 4 * * *" + RESTIC_REPOSITORY: /restic + RESTIC_PASSWORD: USE_SAME_PASSWORD_AS_ABOVE + TZ: Europe/London + security_opt: + - no-new-privileges:true + + check: + image: mazzolino/restic + container_name: restic-check + hostname: your_host_name + environment: + RUN_ON_STARTUP: "false" + CHECK_CRON: "0 15 5 * * *" + RESTIC_CHECK_ARGS: >- + --read-data-subset=10% + RESTIC_REPOSITORY: /restic + RESTIC_PASSWORD: USE_SAME_PASSWORD_AS_ABOVE + TZ: Europe/London + security_opt: + - no-new-privileges:true \ No newline at end of file