Skip to content

dirmeier/docker-nginx-gunicorn-flask-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nginx-gunicorn-flask-app-template

Project Status

A template for web-apps

Introduction

This is a barebone that I like to use for web-servers. It uses skeleton on the front-end, nginx as a reverse-proxy, Gunicorn as HTTP-server and Flask as web-framework. All directories/files are empty I think, so you just need to fill them. The entire stack is dockerized.

Usage

First download the latest tarball and unpack it. In order to install the barebone, first get modify the htmls, python files etc. To run the service you need to have docker installed (any recent version ill do):

  ./service.sh build

This installs the image. Starting the container is done by:

  ./service.sh start

This starts nginx and lets it listen on port 80. So navigate to localhost or 127.0.0.1. You should see something like this:

Drawing

When you are finished, stop the container again:

  ./service.sh stop

Author