Files
file-backups/docker-compose.yml
John Lancaster b368cede93 WIP
2024-02-19 23:10:02 -06:00

28 lines
548 B
YAML

version: '3.9'
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