mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 16:54:26 +01:00
parent
0e523a9edc
commit
f22ca7a7f0
4
Makefile
4
Makefile
@ -13,11 +13,9 @@
|
|||||||
|
|
||||||
DOCKER := docker
|
DOCKER := docker
|
||||||
|
|
||||||
PROFILES := backup
|
PROFILES := caddy wordpress adminer backup qbittorrent syncthing gitea gitea-runner uptime-kuma jellyfin watchtower
|
||||||
PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
|
PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
|
||||||
|
|
||||||
# caddy syncthing gitea gitea-runner uptime-kuma jellyfin watchtower adminer wordpress qbittorrent
|
|
||||||
|
|
||||||
COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /')
|
COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /')
|
||||||
|
|
||||||
.PHONY: build all
|
.PHONY: build all
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
version: 2
|
|
||||||
|
|
||||||
locations:
|
|
||||||
caddy_data:
|
|
||||||
from: /data/caddy_data
|
|
||||||
to:
|
|
||||||
- foo
|
|
||||||
cron: '* * * * *'
|
|
||||||
|
|
||||||
backends:
|
|
||||||
foo:
|
|
||||||
type: local
|
|
||||||
path: /backup
|
|
@ -1,18 +1,15 @@
|
|||||||
services:
|
services:
|
||||||
# Backup
|
# Backup
|
||||||
backup:
|
backup:
|
||||||
image: cupcakearmy/autorestic:latest
|
image: mazzolino/restic:latest
|
||||||
container_name: backup
|
container_name: backup
|
||||||
profiles:
|
profiles:
|
||||||
- backup
|
- backup
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
env_file:
|
env_file:
|
||||||
- env/backup.env
|
- env/backup.env
|
||||||
#entrypoint: ["autorestic", "backup", "--ci", "-va", "-c", "/data/autorestic.yml"]
|
|
||||||
entrypoint: ["restic init --repository-version 2 --repo", "/data/caddy_data"]
|
|
||||||
volumes:
|
volumes:
|
||||||
- backup:/backup
|
- backup:/mnt/restic
|
||||||
- ./config/backup/autorestic.yml:/data/autorestic.yml:ro
|
|
||||||
- caddy_data:/data/caddy_data:ro
|
- caddy_data:/data/caddy_data:ro
|
||||||
- caddy_config:/data/caddy_config:ro
|
- caddy_config:/data/caddy_config:ro
|
||||||
# - gitea_data:/data/gitea_data:ro
|
# - gitea_data:/data/gitea_data:ro
|
||||||
@ -25,6 +22,8 @@ services:
|
|||||||
# - qbittorrent_config:/data/qbittorrent_config:ro
|
# - qbittorrent_config:/data/qbittorrent_config:ro
|
||||||
# - qbittorrent_data:/data/qbittorrent_data:ro
|
# - qbittorrent_data:/data/qbittorrent_data:ro
|
||||||
# - uptimekuma_data:/data/uptimekuma_data:ro
|
# - uptimekuma_data:/data/uptimekuma_data:ro
|
||||||
|
networks:
|
||||||
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
|
||||||
|
9
env/backup.env
vendored
9
env/backup.env
vendored
@ -1 +1,8 @@
|
|||||||
AUTORESTIC_FOO_RESTIC_PASSWORD=secret123
|
BACKUP_CRON=0 2 * * *
|
||||||
|
RESTIC_REPOSITORY=/mnt/restic
|
||||||
|
RESTIC_BACKUP_SOURCES=/data
|
||||||
|
RESTIC_PASSWORD=7L1Ncbquax0B2TCOmrjaQl9n5mnY88bQ
|
||||||
|
#RESTIC_BACKUP_ARGS=
|
||||||
|
#RESTIC_FORGET_ARGS=--prune --keep-last 14 --keep-daily 1
|
||||||
|
#RESTIC_PRUNE_ARGS=
|
||||||
|
RESTIC_CHECK_ARGS=--read-data-subset=20%
|
Loading…
Reference in New Issue
Block a user