Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/by-sabbir/django-gunicorn-nginx-docker

Docker helps us package container based applications like python, django, flask, nginx, gunicorn, PostgreSQL, MySQL as a deployment ready system. We will, in this article, deploy a django app with nginx, gunicorn, PostgreSQL in their separate docker. We will package the whole project with docker-compose.
https://github.com/by-sabbir/django-gunicorn-nginx-docker

django docker gunicorn nginx postgresql

Last synced: 3 months ago
JSON representation

Docker helps us package container based applications like python, django, flask, nginx, gunicorn, PostgreSQL, MySQL as a deployment ready system. We will, in this article, deploy a django app with nginx, gunicorn, PostgreSQL in their separate docker. We will package the whole project with docker-compose.

Awesome Lists containing this project

README

        

# Dockerize Django along with Nginx and PostgreSQL

Docker will make your life a bit easier when it comes to deployment and CI/CD. This method can be used to deploy most stacks with Nginx and Postgres, ie. Flask, django-rest, FastAPI, NodeJS...

## Installation

Your system must have [docker-compose](https://docs.docker.com/compose/install/) to follow along.

```bash
docker-compose build
docker-compose up
```
You would be able to access

[localhost:8008](http://localhost:8008/)

## Usage
stop the container
```bash
docker-compose down
```
drop to django shell
```bash
docker-compose exec web python manage.py shell
```
more at [here](https://docs.docker.com/get-started/overview/)
## Contributing
You can do whatever you want with this repo.