docker-compose.yml 517 B

123456789101112131415161718192021
  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
  17. networks:
  18. - prometheus_pushgateway
  19. networks:
  20. prometheus_pushgateway:
  21. external: true