- Add multi-instance mode: run multiple apps on different ports
- New UCI config structure with 'instance' sections
- Container starts multiple streamlit processes via STREAMLIT_INSTANCES env
- CLI commands: instance list/add/remove/enable/disable
- Each instance has its own port, requirements auto-install
- Backward compatible: single-app mode still works
- Bumped to 1.0.0-r4
Example config:
config instance 'dashboard'
option app 'dashboard.py'
option port '8502'
option enabled '1'
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
734 B
Plaintext
30 lines
734 B
Plaintext
config streamlit 'main'
|
|
option enabled '0'
|
|
option data_path '/srv/streamlit'
|
|
option memory_limit '1024M'
|
|
# Base port - instances use 8501, 8502, 8503...
|
|
option base_port '8501'
|
|
|
|
config server 'server'
|
|
option headless 'true'
|
|
option browser_gather_usage_stats 'false'
|
|
option theme_base 'dark'
|
|
option theme_primary_color '#0ff'
|
|
|
|
# Default hello app on port 8501
|
|
config instance 'hello'
|
|
option name 'Hello World'
|
|
option app 'hello.py'
|
|
option port '8501'
|
|
option enabled '1'
|
|
option autostart '1'
|
|
|
|
# Example: Add more instances
|
|
# config instance 'dashboard'
|
|
# option name 'Dashboard App'
|
|
# option app 'dashboard.py'
|
|
# option port '8502'
|
|
# option enabled '1'
|
|
# option autostart '1'
|
|
# option domain 'dashboard.example.com'
|