Hi Is it possible to have Mongodb or any other database running in the background when deploying to streamlit share? or any other suggested options?
thank you
Hi Is it possible to have Mongodb or any other database running in the background when deploying to streamlit share? or any other suggested options?
thank you
Follow my 2 cents:
Quick answer: Yes, it’s possible
Should you do it? Not yet
The container where your app runs is disposable, so you can lose all your data. If it’s not a problem, you can add a sqlite, mysql or any other debian package to it (or install manually from your code).
If you need to keep the data, you should rely on external services like AWS DynamoDB. However, handling secrets is not possible yet. But it looks like streamlit is working on this one (https://docs.streamlit.io/en/stable/deploy_streamlit_app.html#limitations-and-known-issues)
Cheers