Deploy with a local database

Hi, guys!

I need a solution to deploy my app, with reflex-auth-local, in a hosting.

I have tried Azure, using contaneirs with Azure Container Registry, and Azure Container Apps.

But I have problems at the point where I want to access the reflex.db database.

Is there any way I can deploy my application to a cloud service, preferably Azure, using a local database and persist it?

It’s getting a bit desperate to move forward along these lines. Alternatively I’m thinking of deploying local docker containers.

Thanks for help me.

Here’s an example app that I deploy on a bog-standard hetzner VM (literally any VPS host will work with SSH and docker-compose installed): GitHub - masenf/rx_shout

It uses a containerized postgres db, static frontend export (caddy w/ TLS), and a python3.13 backend container.

My example repo expands on the official production-compose example with an additional github action to perform automatic deployment whenever I push to main.

It’s well tested, i make sure it continues to work before publishing any reflex release.

1 Like