version: "3.7"

services:
  backup:
    build:
      context: .
    image: backup
    restart: never
    env_file:
      - .env
      - .secret.env
    volumes:
      - /tmp/backup-misc:/backup/misc
      - gitea_data:/backup/volumes/gitea_data
      - influxdb_data:/backup/volumes/influxdb_data
      - reitanlage_data:/backup/volumes/reitanlage_data
      - synapse_media_store:/backup/volumes/synapse_media_store
      - tandoor_mediafiles:/backup/volumes/tandoor_mediafiles
    command: restic backup /backup

volumes:
  gitea_data:
    external: true
  influxdb_data:
    external: true
  reitanlage_data:
    external: true
  synapse_media_store:
    external: true
  tandoor_mediafiles:
    external: true