Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeasashu/python-nginx-docker
A python flask application using uwsgi server and nginx load balancer
https://github.com/codeasashu/python-nginx-docker
docker-compose flask-application python uwsgi-nginx-docker
Last synced: 25 days ago
JSON representation
A python flask application using uwsgi server and nginx load balancer
- Host: GitHub
- URL: https://github.com/codeasashu/python-nginx-docker
- Owner: codeasashu
- Created: 2018-11-29T13:35:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T20:03:34.000Z (almost 6 years ago)
- Last Synced: 2024-10-05T00:40:57.251Z (about 2 months ago)
- Topics: docker-compose, flask-application, python, uwsgi-nginx-docker
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
This is a [Flask](http://flask.pocoo.org/) application running behind uwsgi server which is being loadbalanced by nginx, which is dockerized. Awesome!!
## How to run
1. Clone the repo `git clone https://github.com/codeasashu/python-nginx-docker.git`
2. `cd` into the repo directory. `cd python-nginx-docker`
3. Create environment file from env-example file. `cp env-example .env`
4. Run `docker-compose build` and then `docker-compose up -d`
5. Enjoy the python app.## Making changes
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
## TODO
1. SSL support
2. Live code reloads
3. Basic frontend to demonstrate static content loading via nginx