services: backup: image: creativeprojects/resticprofile entrypoint: '/bin/sh' command: - -c - 'crond && resticprofile-schedule.sh && inotifyd resticprofile-schedule.sh /etc/resticprofile:w' 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