Assume we have a vanilla Rails setup that has Dockerfile available and is running without issues at the moment.
To change default Rails setup
Updating Dockerfile
Update docker-entrypoint
A litestream.yml
config file at root
Here we assume that the database is stored at /data/production.sqlite3
This is coming from the fly.toml config.
We already have a volume defined for the app, so just mounting it to the path in config
Have ENV values setup
That should do it.