This is a Flask application running behind uwsgi server which is being loadbalanced by nginx, which is dockerized. Awesome!!
- Clone the repo
git clone https://github.com/codeasashu/python-nginx-docker.git
cd
into the repo directory.cd python-nginx-docker
- Create environment file from env-example file.
cp env-example .env
- Run
docker-compose build
and thendocker-compose up -d
- Enjoy the python app.
The code lives in app
directory, which have this file called server.py
- a simple flask application. Make changes there and see if it works
- SSL support
- Live code reloads
- Basic frontend to demonstrate static content loading via nginx