version: '3.9' services: restic: image: restic/restic:latest hostname: gitea environment: - RESTIC_REPOSITORY=/repo - RESTIC_PASSWORD=${RESTIC_PASSWORD} volumes: - ../gitea/data:/data:ro - restic_repo:/repo - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro command: backup /data --dry-run volumes: restic_repo: driver: local driver_opts: type: none o: bind device: ${RESTIC_REPOSITORY} secrets: restic-pw: environment: RESTIC_PASSWORD