Streamlit Deployment Guide (wiki)

Given the ever expanding number of cloud platforms and technologies that can be used for deploying Streamlit, having a set of up-to-date instructions as part of the standard Streamlit documentation isn’t feasible. Thankfully, so many of you have been willing to share your projects, write tutorials, and answer other people’s issues with deploying Streamlit!

This wiki has been created as a “Best Of…” set of answers for deploying Streamlit. Community members should feel free to add references as they are created, and remove links that are no longer valid.

If you have a question, please use this wiki as a reference, but ask your questions as separate threads in our Deploying Streamlit category.

How can I contribute ?

Contributing to this wiki is easy and open to anyone (at least if you have hung around on the forum enough to get to Trust Level 1) . It’s a click away from the Edit button on the bottom left of the post !

  • Please list technologies/platforms in alphabetical order
  • Multiple links per technology is fine, but after 4-5 links, consider which are the best examples
  • There’s a fine line between helping the community and marketing. Please don’t add your own article just published a few hours prior. When in doubt, leave the reference as a comment on this post and someone else from the community can add it if they feel it represents as “best of” answer
  • Please minimize auto-expanding links, to keep the guide compact
  • If there is a platform you are interested in, add it! This guide will only be as good as those who participate :slight_smile:


Streamlit Deployment Guide

Note: As a community-led effort, no guarantee can be made by Streamlit to ensure these references are factually accurate, nor is inclusion in this list an endorsement by Streamlit. All questions and comments should be addressed to the author of the respective piece of content.

Cloud/Platforms

Aliyun / Alibaba

Amazon Web Services (AWS)

Azure (Microsoft)

CapRover

Google Cloud Platform (GCP)

DeepNote

Digital Ocean

Google Colab

Heroku

JupyterHub

Kubernetes

Windows Server IIS

Ploomber Cloud


Standalone Executable

Windows , MacOS , Linux

Android or IOS


Webservers

Apache

Nginx

Traefik

cPanel

27 Likes
Host Streamlit on Apache Webserver
Deployment of streamlit app on a remote server
Deploying Streamlit Apps with Docker on Heroku
[TUTORIAL] Deploying Streamlit app to AWS Lightsail with Docker and Nginx
🗞️ Weekly Roundup: Neural searches with BERT and Solr, pencil sketcher apps, adding color to black & white photos and more
Deploy app on a private server
Hosting streamlit on Heroku
HOWTO: Streamlit on AWS with Elastic Beanstalk and Docker
Deploy Streamlit Application
Authenticated Full-Stack Streamlit with Docker
External URL on aws ec2 with https
Deploying with python 3.8
GCP App Engine integration
Streamlit server & future prospects
How to run streamlit in https mode?
Selfhosted streamlit expose to clearnet cloudflare tunnel or similar
FAQ: Deploying additional private apps on Community Cloud
Streamlit SOC2 Documentation
Issue with Deploying ML Models in Streamlit
Streamlit for Teams
Can't connect to a remote PostgreSQL from my deployed Streamlit app
Error: This model doesn't have language tokens so it can't perform lang id
Designing application- QuantAI_123 [financial analyst ChatGPT]
Cybersecurity vulnerabilities of Streamlit app on community cloud and private cloud
How can I get the public IP of my streamlit app hosted on cloud
The need to record the time, ip and times of visitors
Pricing
Share app from email list?
Error when loading PDF file with LlamaIndex
Can I use the tools on my share.streamlit and integrate them into my website?
App gets collapsed in cloud
App suddenly stopped working after it went to sleep
My app works locally, but in deployment I'm getting: The service has encountered an error while checking the health of the Streamlit app: Get "http://localhost:8501/healthz": read tcp 10.12.147.189:58558->10.12.147.189:8501: read: connection reset by peer
Deploying App in Another Hosting Service
Security problem
Use a different server than the Streamlit Cloud
Error Running App. My application always crashes after uploading some images
Streamlit Cloud pricing discussion
Deploy to Cloudflare pages
Deploying Streamlit with Traefik and Docker
Faster Servers for Streamlit
Increase Streamlit Cloud 1GB Resources
Increase number of private apps that can be shared
Private Github Repo
Google Places API works on local but not on Streamlit Cloud
Streamlit without GitHub?
Link to IP Allowlist Documentation is Broken
How to basic help needet: Deploying a streamlit app without cloudservices
What happened to Streamlit Cloud Plans?
Enabling Microphone Access when deployed
Streamlit deploy app
How to use SSL certificates?
Is it possile to let streamlit app run under windows IIS web server?
Can I Install GPU version Pytorch in the app?
Deploying my first app yet very confused
Problem deploying streamlit app to Heroku -- Help needed!
Not able to deploy to Heroku | Error in creating config.toml
Lost access to streamlit cloud - can't contact support
Access control for streamlit app served in iframe

I would appreciate knowing whether streamlit run app.py command is running the app on a single-threaded development server or not? My goal is to deploy it in production. So it must be multithreaded.
Thank you in advance for any hints!

4 Likes

Andrei, when you get your answer, please share with us the steps you use for deployment to production. Streamlit needs easy-to-follow tutorials for deployment (other than streamlit share.)

3 Likes

A post was split to a new topic: Invitation to Streamlit sharing

Hey all,

I think this might be good to link here. @kurt-rhee was kind enough to post a basic docker file for deploying streamlit apps on EC2. Hopefully, this will help others who need an example to work with!

Happy Streamlit-ing!
Marisa

1 Like

A post was split to a new topic: Routing user to correct container when deploying on AWS Fargate

I setup two 1-click* Heroku templates while setting up for a weekend project needing a database. Thought they might fit here! No worries if there’s enough Heroku coverage already.

*(1-click if you have github and heroku accounts already)

1 Like

No problem at all, feel free to add it to the wiki!

Am looking for how to better deploy streamlit on digital ocean…when i deployed last time, all my html markdown collapsed

Can I deploy Streamlit with Bitbucket instead of Github?

@JL-V Certainly. While Community Cloud doesn’t support Hitbucket, there’s nothing stopping you from building your own deployment solution that clones your repo from Bitbucket.

Is there any recent knowledge on deploying to Azure? I am hoping to use streamlit for an internal facing app that will be on an Azure platform. Could someone advise what the process is and whether it can integrate with the Windows AD security, as we will be passing sensitive data through the app

Hi. can you please add a guide on how to deploy Streamlit on a personal root access VPS/Ubuntu or Debian.
That’d be great if you also create a guide on how to deploy Streamlit on cPanel hosting enviroment.

Hello guys! Is it possible to deploy streamlit apps on Netlify? If yes please shed some light…

Hey I saw this post for Microsoft Azure :slight_smile: https://towardsdatascience.com/beginner-guide-to-streamlit-deployment-on-azure-f6618eee1ba9

1 Like

Made a guide to myself how to Deploy/Host a Streamlit app in a Linode Server using Nginx with SSL
https://github.com/Thiagojm/str_deploy

or acess it on a streamlit app:
https://str-deploy-linode.streamlit.app/

2 Likes

Is there Streamlit support in Terraform?

Ploomber cloud also recently added Streamlit integration, so you can deploy for free more than a single private app, check it out here

1 Like

Hey, I saw CICD approach to deploy Streamlit apps on AWS GitHub - aws-samples/aws-streamlit-deploy-cicd