Deploying a production-ready Django project using Nginx and Gunicorn

Overview

django-nginx-gunicorn

alt text

This project is for deploying a production-ready Django project using Nginx and Gunicorn. Running a local server of Django is not a recommended way in production because it is only a development environment with lots of limitations, but not a production server. Therefore, in order to run Django efficiently in a production environment we need a web server and a reverse proxy. In this regard, Gunicorn and Nginx are highly recommended for deployment.

Gunicorn: The Gunicorn "Green Unicorn" is a Python Web Server Gateway Interface HTTP server. The Gunicorn server is broadly compatible with a number of web frameworks, simply implemented, light on server resources and fairly fast.

Nginx: Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.

All materials of this project are dockerized in a single container for a simpler deployment.

How to Build

docker build -t helloworld_django .

How to Run

docker run --name helloworld_django -p 80:80 helloworld_django

After running the container, A simple Django project will be run using Nginx and Gunicorn that shows a "Hello World" statement on the following address:

http://127.0.0.1:80

Owner
Arash Sayareh
Senior Python Developer and Machine Learning Specialist
Arash Sayareh
๐Ÿณ Docker templates for various languages.

Docker Deployment Templates One Stop repository for Docker Compose and Docker Templates for Deployment. Features Python (FastAPI, Flask) Screenshots D

CodeChef-VIT 6 Aug 28, 2022
NixOps is a tool for deploying to NixOS machines in a network or cloud.

NixOps NixOps is a tool for deploying to NixOS machines in a network or the cloud. Key features include: Declarative: NixOps determines and carries ou

Nix/Nixpkgs/NixOS 1.2k Jan 02, 2023
Run your clouds in RAID.

UniKlaud Run your clouds in RAID Table of Contents About The Project Built With Getting Started Installation Usage Roadmap Contributing License Contac

3 Jan 16, 2022
Build Netbox as a Docker container

netbox-docker The Github repository houses the components needed to build Netbox as a Docker container. Images are built using this code and are relea

Farshad Nick 1 Dec 18, 2021
Manage your azure VM easily!

Azure-manager Manage your VM in Azure using cookies.

Team 1injex 129 Dec 17, 2022
Changelog CI is a GitHub Action that enables a project to automatically generate changelogs

What is Changelog CI? Changelog CI is a GitHub Action that enables a project to automatically generate changelogs. Changelog CI can be triggered on pu

Maksudul Haque 106 Dec 25, 2022
A simple python application for running a CI pipeline locally This app currently supports GitLab CI scripts

๐Ÿƒ Simple Local CI Runner ๐Ÿƒ A simple python application for running a CI pipeline locally This app currently supports GitLab CI scripts โš™๏ธ Setup Inst

Tom Stowe 0 Jan 11, 2022
Ansible for DevOps examples.

Ansible for DevOps Examples This repository contains Ansible examples developed to support different sections of Ansible for DevOps, a book on Ansible

Jeff Geerling 6.6k Jan 08, 2023
Flexible and scalable monitoring framework

Presentation of the Shinken project Welcome to the Shinken project. Shinken is a modern, Nagios compatible monitoring framework, written in Python. It

Gabรจs Jean 1.1k Dec 18, 2022
Caboto, the Kubernetes semantic analysis tool

Caboto Caboto, the Kubernetes semantic analysis toolkit. It contains a lightweight Python library for semantic analysis of plain Kubernetes manifests

Michael Schilonka 8 Nov 26, 2022
Repository tracking all OpenStack repositories as submodules. Mirror of code maintained at opendev.org.

OpenStack OpenStack is a collection of interoperable components that can be deployed to provide computing, networking and storage resources. Those inf

Mirrors of opendev.org/openstack 4.6k Dec 28, 2022
Play Wordle from any Kubernetes cluster.

wordle-operator ๐ŸŸฉ โฌ› ๐ŸŸฉ ๐ŸŸจ โฌ› Play Wordle from any Kubernetes cluster. Using the power of CustomResourceDefinitions and Kubernetes Operators, now you c

Lucas Melin 1 Jan 15, 2022
Project 4 Cloud DevOps Nanodegree

Project Overview In this project, you will apply the skills you have acquired in this course to operationalize a Machine Learning Microservice API. Yo

1 Nov 21, 2021
MLops tools review for execution on multiple cluster types: slurm, kubernetes, dask...

MLops tools review focused on execution using multiple cluster types: slurm, kubernetes, dask...

4 Nov 30, 2022
DC/OS - The Datacenter Operating System

DC/OS - The Datacenter Operating System The easiest way to run microservices, big data, and containers in production. What is DC/OS? Like traditional

DC/OS 2.3k Jan 06, 2023
Tools and Docker images to make a fast Ruby on Rails development environment

Tools and Docker images to make a fast Ruby on Rails development environment. With the production templates, moving from development to production will be seamless.

1 Nov 13, 2022
A lobby boy will create a VPS server when you need one, and destroy it after using it.

Lobbyboy What is a lobby boy? A lobby boy is completely invisible, yet always in sight. A lobby boy remembers what people hate. A lobby boy anticipate

226 Dec 29, 2022