Volume data gone on deploy

You are going to either need to read and write to the absolute path /data or change the mount point in your fly.toml to match whatever ./data/ resolves to in your application; typically whatever is specified as WORKDIR in your Dockerfile followed by /data. In my app that would be /app/data.