Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knguyen-1411/flask-docker-template
A Flask application template running inside Docker, designed to support both development mode with hot reload and optimized production configuration.
https://github.com/knguyen-1411/flask-docker-template
compose development docker dockerfile flask production python
Last synced: about 2 months ago
JSON representation
A Flask application template running inside Docker, designed to support both development mode with hot reload and optimized production configuration.
- Host: GitHub
- URL: https://github.com/knguyen-1411/flask-docker-template
- Owner: KNguyen-1411
- Created: 2024-10-30T04:44:06.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T04:46:32.000Z (2 months ago)
- Last Synced: 2024-11-09T23:04:08.415Z (about 2 months ago)
- Topics: compose, development, docker, dockerfile, flask, production, python
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Docker Development Template
A Flask application template running inside Docker, designed to support both **development** mode with hot reload and optimized **production** configuration.
## Prerequisites
- [Docker](https://www.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/)## Getting Started
To get started with the application, follow these steps:
### 1. Clone the repository:
```bash
git clone https://github.com/KNguyen-1411/flask-docker-template.git
```### 2. Navigate to the cloned repository:
```bash
cd flask-docker-template
```### 3. Build and start the Docker containers:
```bash
docker compose up --build -d
```The Flask application will be accessible at `http://localhost:5000`.
## Development Environment
- By default, the application will start in **development mode** with **hot reload** enabled, so any code changes will automatically restart the server.
- To switch between **development** and **production** modes, you can adjust the `target` setting in `docker-compose.yml`.## Built With
- [Python](https://www.python.org/)
- [Flask](https://flask.palletsprojects.com/)
- [Docker](https://www.docker.com/)## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
## Author
- **Khánh Nguyên**
_30-11-2024_---
Thank you for checking out this project! Have a great day!