WIP
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
autorestic:
|
||||
image: cupcakearmy/autorestic:latest
|
||||
env_file:
|
||||
- .env
|
||||
restic:
|
||||
image: restic/restic:latest
|
||||
hostname: gitea
|
||||
environment:
|
||||
- RESTIC_REPOSITORY=/repo
|
||||
- RESTIC_PASSWORD=${RESTIC_PASSWORD}
|
||||
volumes:
|
||||
- .autorestic.yaml:/.autorestic.yaml
|
||||
- ../:/source:ro
|
||||
- backups:/backups
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: [
|
||||
"autorestic",
|
||||
"backup",
|
||||
"-va",
|
||||
"-c", "/.autorestic.yaml"
|
||||
]
|
||||
- ../gitea/data:/data:ro
|
||||
- restic_repo:/repo
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
command: backup /data --dry-run
|
||||
|
||||
volumes:
|
||||
backups:
|
||||
restic_repo:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /mnt/backups
|
||||
device: ${RESTIC_REPOSITORY}
|
||||
|
||||
secrets:
|
||||
restic-pw:
|
||||
environment: RESTIC_PASSWORD
|
||||
|
||||
Reference in New Issue
Block a user