version: '2' services: restic: image: restic/restic container_name: restic hostname: restic restart: on-failure:3 volumes: - ${BACKUP_SOURCE}:/mnt/source:ro - ./data/restic:/root/restic:ro env_file: .env #entrypoint: /bin/sh entrypoint: /root/restic/entry.sh