mirror of
https://github.com/homeinfra-org/infra
synced 2025-04-16 09:19:32 +08:00
add restic
This commit is contained in:
parent
7da6ea3e39
commit
a5ddf292de
19
docker/restic/docker-compose.yml
Normal file
19
docker/restic/docker-compose.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
backup:
|
||||||
|
image: ghcr.io/lobaro/restic-backup-docker:master
|
||||||
|
#build: .
|
||||||
|
hostname: restic
|
||||||
|
volumes:
|
||||||
|
- /root:/data/root
|
||||||
|
|
||||||
|
- /tmp/restic.cache:/root/.cache/restic
|
||||||
|
- ./data/logs:/var/log/
|
||||||
|
- ./hooks:/hooks
|
||||||
|
- ./ignore.txt:/restic_ignore.txt
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
#entrypoint: tail -f /dev/null
|
||||||
|
restart: unless-stopped
|
1
docker/restic/hooks/post-backup.sh
Executable file
1
docker/restic/hooks/post-backup.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
curl -m 10 --retry 5 $HEALTH_CHECK_URL
|
0
docker/restic/ignore.txt
Normal file
0
docker/restic/ignore.txt
Normal file
Loading…
x
Reference in New Issue
Block a user