Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sushantjadhav416/docker_compose_project
Docker Compose Project build using Flask and using Nginx as Loadbalancer
https://github.com/sushantjadhav416/docker_compose_project
docker-compose nginx-proxy python3
Last synced: about 2 months ago
JSON representation
Docker Compose Project build using Flask and using Nginx as Loadbalancer
- Host: GitHub
- URL: https://github.com/sushantjadhav416/docker_compose_project
- Owner: sushantjadhav416
- Created: 2023-05-04T05:41:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-31T06:18:34.000Z (10 months ago)
- Last Synced: 2024-10-14T08:07:16.918Z (3 months ago)
- Topics: docker-compose, nginx-proxy, python3
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker Compose Project build using Flask and using Nginx as Loadbalancer
- This is basic flask based web application to demonstrate the Docker compose concept
- So what is docker compose? so , Docker compose is tool for defining and running multi-container Docker applications. with compose we use a yaml file to configure our
application services.
- Compose is work on all envirenment production , staging development, testing as well as workflow also.
- The key feature's of docker compose :
1. Have Multiple isolated environment on a single host .
2. Preserve volume data when container are created .
3. Only recreate's the container that have changed .
4. Supports variables and moving a composition beetween environments.
### Project setup-
- First , clone this repository to your system.
- I have coded the docker-compose file in .yaml format.
- So type **docker-compose Up** command to start application.
- In this project we are using flask based Wed API , Nginx server and redis as a backend database.### Use of Nginx server to enable scaling in docker compose
- We are using nginx web servers as loadbalancer for scaling of our application.
- For this task we have setup nginx.conf file.
- After compliting the setup follow below command.
```
docker-compose scale web=5
```
- Here web is name off a service and 5 number of containers to be scaled.
- The Nginx act as proxy server to allow our application to scale.