version: '3.9' services: autorestic: image: cupcakearmy/autorestic:latest env_file: - .env volumes: - .autorestic.yaml:/.autorestic.yaml - ../:/source:ro - backups:/backups - /var/run/docker.sock:/var/run/docker.sock command: [ "autorestic", "backup", "-va", "-c", "/.autorestic.yaml" ] volumes: backups: driver: local driver_opts: type: none o: bind device: /mnt/backups