Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/by-sabbir/django-gunicorn-nginx-docker
- Owner: by-sabbir
- Created: 2020-08-12T20:47:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-14T03:40:40.000Z (over 3 years ago)
- Last Synced: 2023-03-05T13:18:19.655Z (almost 2 years ago)
- Topics: django, docker, gunicorn, nginx, postgresql
- Language: Python
- Homepage: https://sabbir.dev/article/fd30b0a3-eb3d-4b66-bc88-cdb463adbd5c/
- Size: 1.9 MB
- Stars: 11
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.