All Projects → matthieugouel → docker-python-gunicorn-nginx

matthieugouel / docker-python-gunicorn-nginx

Licence: MIT license
Docker image with Python3, Gunicorn and Nginx managed with Supervisor

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to docker-python-gunicorn-nginx

tutorials
Collection of tutorials for various libraries and technologies
Stars: ✭ 98 (+133.33%)
Mutual labels:  gunicorn, supervisor
FastAPI-Full-Stack-Samples
The API Application Development using Python FastAPI, including interactive API documentation
Stars: ✭ 61 (+45.24%)
Mutual labels:  gunicorn
fastapi
基于Fastapi开发,集成Celery-redis分布式任务队列、JWT 用户系统、ElasticSearch和encode orm的基础项目模板,大家可以根据自己的需求在本模板上进行修改
Stars: ✭ 75 (+78.57%)
Mutual labels:  gunicorn
lnmp-docker
Docker for LNMP ( Alpine Linux + PHP7 + Nginx+ Supervisor + Crontab ) 开发环境镜像
Stars: ✭ 23 (-45.24%)
Mutual labels:  supervisor
balena-node-red
a node-red application with balena-supervisor support, can be managed remotely via balena publicURL
Stars: ✭ 54 (+28.57%)
Mutual labels:  supervisor
delayed otp
Delay death of supervisor children or gen_server : for instance Erlang supervisor with exponential backoff restart strategy
Stars: ✭ 22 (-47.62%)
Mutual labels:  supervisor
myblog
An Open Source Multi-user Blog System that Powered by Flask.
Stars: ✭ 19 (-54.76%)
Mutual labels:  gunicorn
django-boilerplate-3.6.1
Django served by Gunicorn running behind Nginx reverse proxy. Deploy to AWS Elastic Beanstalk with Fabric3!
Stars: ✭ 13 (-69.05%)
Mutual labels:  gunicorn
ncolony
A colony of interacting processes
Stars: ✭ 23 (-45.24%)
Mutual labels:  supervisor
supervisor
[Mirror] Supervisor trees for Go applications.
Stars: ✭ 35 (-16.67%)
Mutual labels:  supervisor
docker-alpine
Minimal Alpine with working init process
Stars: ✭ 21 (-50%)
Mutual labels:  supervisor
supervisorring
otp/supervisor-like interface to supervise distributed processes
Stars: ✭ 15 (-64.29%)
Mutual labels:  supervisor
DigitalOceanFlask
installing a Flask webapp on a Digital Ocean (or Linode, etc.) Ubuntu box
Stars: ✭ 42 (+0%)
Mutual labels:  gunicorn
django-step-by-step
A Django + Vue reference project that focuses on developer tooling and CI/CD + IaC
Stars: ✭ 86 (+104.76%)
Mutual labels:  gunicorn
nyx
Lean linux and OSX process monitoring written in C
Stars: ✭ 24 (-42.86%)
Mutual labels:  supervisor
director
Director is a production-ready supervisor and manager for Erlang/Elixir processes that focuses on speed, performance and flexibility.
Stars: ✭ 62 (+47.62%)
Mutual labels:  supervisor
inboard
🚢 Docker images and utilities to power your Python APIs and help you ship faster. With support for Uvicorn, Gunicorn, Starlette, and FastAPI.
Stars: ✭ 106 (+152.38%)
Mutual labels:  gunicorn
init
Lightweight BSD-style init tools
Stars: ✭ 25 (-40.48%)
Mutual labels:  supervisor
docker-symfony
Docker Symfony (PHP-FPM - NGINX - MySQL - MailHog - Redis - RabbitMQ)
Stars: ✭ 32 (-23.81%)
Mutual labels:  supervisor
muse-as-service
REST API for sentence tokenization and embedding using Multilingual Universal Sentence Encoder.
Stars: ✭ 45 (+7.14%)
Mutual labels:  gunicorn

Docker Image : python-gunicorn-nginx

Build Status Docker Build Status Docker Automated build license

This image contains Nginx and Gunicorn on top of Python3 docker image. These two software are managed with Supervisor.

Usage

The entry point of your application must be named as run.py. Moreover, the instance in that file must be called app. Also, by default the worker class used is Gevent.

You can include a custom Gunicorn configuration file into your application. By default the configuration file must be name as gunicorn.config.py

Dockerfile example

Here is an example of a Dockerfile using that image :

FROM matthieugouel/python-gunicorn-nginx:latest
MAINTAINER Matthieu Gouel <[email protected]>

# Copy the application
COPY . /app

# Install application requirements
RUN pip install -U pip
RUN pip install -r /app/requirements.txt

There is also a Flask demo application in the app folder of this repository.

Build and run

First, build your image based on your Dockerfile.

docker build -t prod_api .

Then, you can run a container like this :

docker run -p 127.0.0.1:8000:80 prod_api

And finally access it with curl for instance :

curl localhost:8000
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].