2024-02-28 10:33:15 +08:00
2024-05-31 17:39:45 +08:00
2024-05-31 17:39:45 +08:00
2024-02-28 10:33:15 +08:00
2024-02-28 10:33:15 +08:00
2024-05-04 10:39:37 +08:00

GitHub commit activity

Webapp + 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
  • Build for ARM64 platform

Production Deployment

  1. git clone https://github.com/furyhawk/cloudy.git
  2. cd cloudy
  3. git submodule update --init --recursive
  4. In compose/traefik/traefik.yml, change example@test.com to your email.
  5. In compose/traefik/traefik.yml, change example.com to your domain.
  6. sudo apt-get install build-essential (if not already installed) to use makefile.
  7. mkdir ~/st-sync syncthing folder.
  8. mkdir ~/site public site folder.
  9. mkdir ./compose/config to store config.
  10. cp .env.example ./compose/.env && cp .env ~/config/.env
  11. cp ./compose/config/conf.php ~/config/conf.php
  12. cp usersfile.example ./compose/usersfile
  13. make serve

Notes:

# Declaring the user list
#
# Note: when used in docker-compose.yml all dollar signs in the hash need to be doubled for escaping.
# To create user:password pair, it's possible to use this command:
# echo $(htpasswd -nB user) | sed -e s/\\$/\\$\\$/g
#
# Also note that dollar signs should NOT be doubled when they not evaluated (e.g. Ansible docker_container module).
labels:
  - "traefik.http.middlewares.test-auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0"
S
Description
Languages
Shell 42%
PHP 20.6%
Jinja 18.8%
Makefile 5%
Python 4.8%
Other 8.8%