mutli-tier-python-app-for-learninglight-demo
5.0K
This is a sample python web application with streamlit framework that connects to a MySQL database through the passing environment variable. Web application is having two input box to provide Item ID and Item Description. Upon clicking the insert item button it will insert the input values in a table. If show item button is clicked it will show the inserted items in a tabular form.
Required Environment variable -
DB_USER MYSQL_ROOT_PASSWORD DB_HOST DB_PORT
Example run command -
docker run -d -e DB_USER=root -e MYSQL_ROOT_PASSWORD=root123 -e DB_HOST=10.2.0.2 -e DB_PORT=3306 -p 8080:5000 --name myapp.v1 --network root_priv-net --network root_mynet myapp:v1.0
Content type
Image
Digest
sha256:71f22a382…
Size
613.6 MB
Last updated
over 2 years ago
docker pull learninglight/myapp:v1.1