Files
file-backups/docker-compose.yml
2024-04-02 22:40:57 -05:00

26 lines
532 B
YAML

services:
restic:
image: restic/restic:latest
hostname: gitea
environment:
- RESTIC_REPOSITORY=/repo
- RESTIC_PASSWORD=${RESTIC_PASSWORD}
volumes:
- ../gitea/data:/data:ro
- restic_repo:/repo
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command: backup /data --dry-run
volumes:
restic_repo:
driver: local
driver_opts:
type: none
o: bind
device: ${RESTIC_REPOSITORY}
secrets:
restic-pw:
environment: RESTIC_PASSWORD