uFlaskHub uses Docker, uWSGI, and Flask to make deploying Flask applications easy. It provides a containerized setup for quick and consistent deployment.
-
- Flask & uWSGI: Integrates Flask apps with uWSGI for smooth server deployment.
- Docker Support: Provides consistent environments and simplifies deployment on various systems.
- Auto-update of Requirements: Updates
requirements.txtautomatically usingpipreqsfor each build.
The easiest way to get started with uFlaskHub is using Docker Compose.
-
Ensure you have Docker and Docker Compose installed on your system, see Docker docs
-
Clone the repository:
git clone https://github.com/m4ary/uFlaskHub -
Navigate to the uFlaskHub directory:
cd uFlaskHub -
Modify the
docker-compose.ymlfile to change the volume path to current path absolute path of uFlaskHub:volumes: - /your/current/path/uFlaskHub:/usr/src/app
-
Start the application using Docker Compose:
docker-compose up -d -
Access the application at
http://localhost:4000/.
If you prefer to build the Docker image yourself, follow these steps:
-
Clone the repository:
git clone https://github.com/m4ary/uFlaskHub -
Navigate to the uFlaskHub directory:
cd uFlaskHub -
Build the Docker image:
docker build -t my-flask-app . -
Run the Docker container:
docker run -p 4000:8000 my-flask-app -
Access the application at
http://localhost:4000/.
Contributions to uFlaskHub are welcome! Feel free to fork the repository, make changes, and submit pull requests.
