+
Skip to content
/ st-container Public template

🛳️ Containerized Streamlit app with Docker and Docker Compose

License

Notifications You must be signed in to change notification settings

tooniez/st-container

Repository files navigation

Streamlit Container App 🐳📊

Containerized Streamlit app with Docker and Docker Compose

Docker Docker Compose Streamlit Make

Contents

  1. Introduction
  2. Prerequisites
  3. Available Commands
  4. Usage
  5. Docker Compose Configuration
  6. Customization
  7. Contributing
  8. License

Introduction

This project uses Docker and Docker Compose to manage the development and deployment process of a containerized Streamlit app. The Makefile provides convenient commands to manage the Docker container.

Pages

  • Home
  • Data Generation
  • EDA
  • Playground
  • Download

Prerequisites

  • Docker
  • Docker Compose
  • Make

Quick Start

  1. Run the hosted gh image docker run -d -p 8501:8501 ghcr.io/tooniez/streamlit-container-app:latest
  2. Open the app in the browser http://localhost:8501

Available Commands

The following commands are available through the Makefile:

make all

This is the default command that runs the following sequence:

  1. Stops the existing container
  2. Rebuilds the Docker image
  3. Runs the rebuilt container

make stop

Stops and removes the Docker container.

make build

Rebuilds the Docker image without using cache.

make run

Runs the rebuilt Docker container in detached mode.

make remove

Removes the Docker image.

Usage

To use these commands, simply run make all followed by the command name. For example:

This will execute the default sequence of stopping the container, rebuilding the image, and running the rebuilt container.

Docker Compose Configuration

The project uses a Docker Compose configuration file (docker-compose.yml) to define the service. The main service is named st-container.

Customization

You can modify the Makefile to add more commands or adjust the existing ones according to your project needs.

Contributing

If you want to contribute to this project, please make sure to follow the existing code style and submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

🛳️ Containerized Streamlit app with Docker and Docker Compose

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载