Skip to content

Sample Flask web application with gunicorn wsgi, dockerized into one container and Nginx web server configured to handle requests in another container

Notifications You must be signed in to change notification settings

jassumohit/flask_gunicorn_nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask, Nginx and Docker

FlaskApp - Docker image with gunicorn(Application Server) for Flask web applications in Python using Alpine Linux.
Nginx - Docker image with Nginx web server running on port 80(http)

Description

FlaskApp docker image makes use of Alpine Linux as base layer alongwith Python and Gunicorn. Gunicorn acts as server gateway interface between flask and nginx, due to it's light weight and high speed small web applications.

Docker Link -
FlaskApp: https://hub.docker.com/r/jassumohit/sample_flask
Nginx: https://hub.docker.com/r/jassumohit/nginxnew

Pre-requisites -

  1. Docker

Steps to run on command line

  1. Clone repo
  2. Activate Docker Daemon
  3. CD to root directory of repo
  4. Run
    docker-compose up

Following lines will display on command line

alt text

Hit the URL - http://localhost

Step to stop

  1. Open another command line
  2. Run
    docker-compose down

About

Sample Flask web application with gunicorn wsgi, dockerized into one container and Nginx web server configured to handle requests in another container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published