Unable to connect to database using sequelize

For starters, you do not want ssl, so delete dialectOptions.

I haven’t tried Sequelize myself, but based on App Connection Examples · Fly Docs, I would suggest adding:

host: new URL(databaseUrl).hostname