codeforkansascity / meep-backend

MIT License
8 stars 11 forks source link

Dockerfile for nginx reverse proxy #22

Open galbwe opened 5 years ago

galbwe commented 5 years ago

Now that we have started using docker, let's set up a container for an nginx reverse proxy. For people who have never heard of a reverse proxy, it is a server that sits in front of the rest of the backend and fowards requests to the appropriate service. This will enable us to set up load balancing in the future, where we can have several instances of the flask application running simultaneously.

see here to get a sense for the overall application architechure I am proposing

see here for more info on configuring nginx to run with a flask application

and here is an introduction to nginx

galbwe commented 5 years ago

This just sets up the basic file structure and configuration for nginx. I figure we can create separate issues when we want to add logging, ssh, load balancing, etc.