Skip to content

Dockerfile for NGINX reverse proxy and streamlit app

Notifications You must be signed in to change notification settings

dpleus/streamlitnginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlitnginx

Description

This is a blueprint for a streamlit app that can be used with a Nginx reverse proxy. It will enable the user to use streamlit with SSL certificates and therefore encrypt the data transfer.

It contains these elements:

  • A sample streamlit app "sample/ui.py"
  • Configfiles for streamlit "config/config.toml" and Nginx "config/streamlitnginxconf"
  • Certificates (Public & Private) "certificates/" (need to be replaced with own certificates)
  • A dockerfile "Dockerfile" that builds a container

It is inspired by this tutorial.

Implementation

The first step is to clone the repository:

git clone https://github.com/dpleus/streamlitnginx.git

Second step is executing the Docker container. Docker needs to be preinstalled. https://docs.docker.com/get-docker/

docker run . -p 9000:9000

You will be able to access the app via: https://localhost:9000

About

Dockerfile for NGINX reverse proxy and streamlit app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published