17 lines
504 B
YAML
17 lines
504 B
YAML
services:
|
|
backup:
|
|
image: creativeprojects/resticprofile
|
|
entrypoint: '/bin/sh'
|
|
command:
|
|
- -c
|
|
- 'resticprofile-schedule.sh && crond -f'
|
|
env_file:
|
|
- .env
|
|
hostname: ${HOSTNAME}
|
|
volumes:
|
|
- ./restic-profile.yaml:/etc/resticprofile/profiles.yaml:ro
|
|
- ./resticprofile-schedule.sh:/usr/local/bin/resticprofile-schedule.sh:ro
|
|
- ./key:/etc/resticprofile/key:ro
|
|
- ${BACKUP_DIR}:${BACKUP_DIR}:ro
|
|
- ${RESTIC_REPOSITORY}:${RESTIC_REPOSITORY}:rw
|