diff --git a/docker-compose.yaml b/docker-compose.yaml index 06723f3..96bc1dc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,6 +7,8 @@ services: volumes: # Map in docker socket - /var/run/docker.sock:/tmp/docker.sock:ro + # Map backup database locally + - ./restic_data:/restic_data # Map in project source - .:/restic-volume-backup web: diff --git a/restic_volume_backup.env b/restic_volume_backup.env index 4cfc7f4..8521950 100644 --- a/restic_volume_backup.env +++ b/restic_volume_backup.env @@ -1,7 +1,7 @@ # DON'T COMMIT THIS FILE IF YOU MODIFY IN DEV DOCKER_BASE_URL=unix://tmp/docker.sock -RESTIC_REPOSITORY=/tmp/backup +RESTIC_REPOSITORY=/restic_data RESTIC_PASSWORD=password # Various env vars for restic : https://restic.readthedocs.io/en/stable/040_backup.html#environment-variables