Coder Social home page Coder Social logo

nginx-gunicorn-flask's Introduction

nginx-gunicorn-flask

This repository contains files necessary for building a Docker image of Nginx + Gunicorn + Flask.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry:

docker pull danriti/nginx-gunicorn-flask

Usage

docker run -d -p 80:80 danriti/nginx-gunicorn-flask

After few seconds, open http://<host> to see the Flask app.

nginx-gunicorn-flask's People

Contributors

danriti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nginx-gunicorn-flask's Issues

How to add SSL ?

I have installed it but couldn't find any thing about ssl, can you please guide me how to add ssl?

Met something error

/usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2016-07-21 18:23:11,253 CRIT Supervisor running as root (no user in config file)
2016-07-21 18:23:11,253 WARN Included extra file "/etc/supervisor/conf.d/gunicorn.conf" during parsing
2016-07-21 18:23:11,253 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2016-07-21 18:23:11,260 INFO RPC interface 'supervisor' initialized
2016-07-21 18:23:11,260 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-07-21 18:23:11,260 INFO supervisord started with pid 1
2016-07-21 18:23:12,263 INFO spawned: 'nginx' with pid 9
2016-07-21 18:23:12,266 INFO spawned: 'gunicorn' with pid 10
2016-07-21 18:23:12,355 INFO exited: gunicorn (exit status 1; not expected)
2016-07-21 18:23:13,357 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-07-21 18:23:13,357 INFO spawned: 'gunicorn' with pid 20
2016-07-21 18:23:13,527 INFO exited: gunicorn (exit status 3; not expected)
2016-07-21 18:23:15,530 INFO spawned: 'gunicorn' with pid 26
2016-07-21 18:23:15,608 INFO exited: gunicorn (exit status 1; not expected)
2016-07-21 18:23:18,614 INFO spawned: 'gunicorn' with pid 32
2016-07-21 18:23:18,712 INFO exited: gunicorn (exit status 1; not expected)
2016-07-21 18:23:19,714 INFO gave up: gunicorn entered FATAL state, too many start retries too quickly

Not familiar with nginx conf, and use all your Dockerfile and other conf, only replace ubuntu:12.04 to python:2.7, and met the error above, do you have any idea about that ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.