2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00

Streamlit + Traefik + Docker

This simple project uses Traefik as a reverse proxy to a Streamlit application and handles SSL certs with Lets Encrypt.

Requirements

  • Docker Compose
  • Python 3.11

Local Deployment

Python:

  1. cd src
  2. pip install -r requirements.txt
  3. streamlit run app.py

Docker:

  1. docker compose -f local.yml up --build

Production Deployment

  1. In compose/traefik/traefik.yml, change example@test.com to your email.
  2. In compose/traefik/traefik.yml, change example.com to your domain.
  3. docker compose -f production.yml up --build -d --remove-orphans

Notes:

S
Description
Languages
Shell 42%
PHP 20.6%
Jinja 18.8%
Makefile 5%
Python 4.8%
Other 8.8%