mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-01-08 00:14:26 +01:00
Compare commits
No commits in common. "d53081cd3587565fe3d0fd3481a1e41b52f730b9" and "e5d8ced52d926fd5cf0af1ce2e5600ed9344fe46" have entirely different histories.
d53081cd35
...
e5d8ced52d
11
infrastructure/caddy/env/caddy_backup.env
vendored
11
infrastructure/caddy/env/caddy_backup.env
vendored
@ -1,14 +1,9 @@
|
|||||||
#RUN_ON_STARTUP=true
|
#RUN_ON_STARTUP=true
|
||||||
|
BACKUP_CRON=*/30 * * * *
|
||||||
RESTIC_REPOSITORY=/mnt/restic
|
RESTIC_REPOSITORY=/mnt/restic
|
||||||
RESTIC_BACKUP_SOURCES=/data
|
RESTIC_BACKUP_SOURCES=/data
|
||||||
RESTIC_PASSWORD=YFQh8v3Wi95v0p6h88D4u8C8z4gLfdMw
|
RESTIC_PASSWORD=YFQh8v3Wi95v0p6h88D4u8C8z4gLfdMw
|
||||||
# Backup (exuclusive with Check and Prune)
|
|
||||||
BACKUP_CRON=*/30 * * * *
|
|
||||||
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
|
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
|
||||||
#RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
|
#RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
|
||||||
# Check (exuclusive with Check and Prune)
|
#RESTIC_PRUNE_ARGS=
|
||||||
#CHECK_CRON=*/30 * * * *
|
RESTIC_CHECK_ARGS=--read-data-subset=20%
|
||||||
#RESTIC_CHECK_ARGS=--read-data-subset=40%
|
|
||||||
# Prune (exuclusive with Check and Prune)
|
|
||||||
#PRUNE_CRON=*/30 * * * *
|
|
||||||
#RESTIC_PRUNE_ARGS=
|
|
@ -1,20 +1,17 @@
|
|||||||
services:
|
services:
|
||||||
main_infrastructure:
|
main_infrastructure:
|
||||||
container_name: main_infrastructure
|
container_name: main_infrastructure
|
||||||
image: alpine:latest
|
image: debian:latest
|
||||||
profiles:
|
profiles:
|
||||||
- main_infrastructure
|
- main_infrastructure
|
||||||
|
user: "root"
|
||||||
|
group_add:
|
||||||
|
- '${PUID:-1000}'
|
||||||
volumes:
|
volumes:
|
||||||
- public_data:/public
|
- public_data:/public
|
||||||
- private_data:/private
|
- private_data:/private
|
||||||
read_only: true
|
networks:
|
||||||
security_opt:
|
- infra-network
|
||||||
- no-new-privileges:true
|
|
||||||
cap_drop:
|
|
||||||
- ALL
|
|
||||||
cap_add:
|
|
||||||
- CHOWN
|
|
||||||
- DAC_OVERRIDE
|
|
||||||
# Fix root permissions on mounted volumes
|
# Fix root permissions on mounted volumes
|
||||||
command: chown -R ${PUID:-1000}:${PGID:-1000} /public /private
|
command: chown -R ${PUID:-1000}:${PGID:-1000} /public /private
|
||||||
|
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
#RUN_ON_STARTUP=true
|
#RUN_ON_STARTUP=true
|
||||||
|
BACKUP_CRON=*/30 * * * *
|
||||||
RESTIC_REPOSITORY=/mnt/restic
|
RESTIC_REPOSITORY=/mnt/restic
|
||||||
RESTIC_BACKUP_SOURCES=/data
|
RESTIC_BACKUP_SOURCES=/data
|
||||||
RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
# Backup (exuclusive with Check and Prune)
|
|
||||||
BACKUP_CRON=*/30 * * * *
|
|
||||||
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
|
RESTIC_BACKUP_ARGS=--tag docker-volumes --verbose
|
||||||
RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
|
RESTIC_FORGET_ARGS=--prune --keep-last 8 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 4
|
||||||
# Check (exuclusive with Check and Prune)
|
#RESTIC_PRUNE_ARGS=
|
||||||
#CHECK_CRON=*/30 * * * *
|
RESTIC_CHECK_ARGS=--read-data-subset=20%
|
||||||
#RESTIC_CHECK_ARGS=--read-data-subset=40%
|
|
||||||
# Prune (exuclusive with Check and Prune)
|
|
||||||
#PRUNE_CRON=*/30 * * * *
|
|
||||||
#RESTIC_PRUNE_ARGS=
|
|
Loading…
Reference in New Issue
Block a user