services: borgmatic: container_name: borgmatic image: ghcr.io/borgmatic-collective/borgmatic:latest restart: unless-stopped volumes: - $DATA:/mnt/source:ro - $BACKUP/shp:/mnt/borg-repository:rw - $CONFIG/borgmatic/etc:/etc/borgmatic.d - $DATA/borgmatic/borg:/root/.config/borg - $DATA/borgmatic/ssh:/root/.ssh - $DATA/borgmatic/cache:/root/.cache/borg - /etc/localtime:/etc/localtime:ro environment: - TZ=Europe/Paris - BORG_PASSPHRASE=none - BACKUP_CRON=0 5 * * * - RUN_ON_STARTUP=true networks: - storage borgmatic-vps: container_name: borgmatic-vps image: ghcr.io/borgmatic-collective/borgmatic:latest restart: unless-stopped volumes: - /mnt/vps:/mnt/source:ro - $BACKUP/vps:/mnt/borg-repository:rw - $CONFIG/borgmatic/etc:/etc/borgmatic.d - $DATA/borgmatic-vps/borg:/root/.config/borg - $DATA/borgmatic-vps/ssh:/root/.ssh - $DATA/borgmatic-vps/cache:/root/.cache/borg - /etc/localtime:/etc/localtime:ro environment: - TZ=Europe/Paris - BORG_PASSPHRASE=none - BACKUP_CRON=0 5 * * * - RUN_ON_STARTUP=true