This is a sample of Mongodb configuration to deploy on Fly.io
Logged in to your account using fly auth login
.
fly apps create <AppName>
fly secrets set MONGO_INITDB_ROOT_USERNAME=<Username> MONGO_INITDB_ROOT_PASSWORD=<Password> MONGO_INITDB_DATABASE=<DbName> --app <AppName>
fly deploy --app <AppName>