docker-compose.yml 417 B

12345678910111213141516
  1. version: '2'
  2. services:
  3. restic:
  4. image: restic/restic
  5. build: .
  6. container_name: restic
  7. hostname: restic
  8. restart: on-failure:3
  9. volumes:
  10. - ${RESTIC_BACKUP_SOURCE}:/mnt/source:ro
  11. - ./data/restic:/root/restic:ro
  12. - ./data/cache:/root/.cache/restic
  13. env_file: .env
  14. entrypoint: /root/restic/entry.sh
  15. # For debugging, docker-compose run restic
  16. #entrypoint: /bin/sh