Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MexsonFernandes/Docker-Django-NginX-PostgreSQL-Gunicorn-Deployment

Repository files navigation

Deployment Docker of Django, PostgreSQL database, NginX, Gunicorn

Hits

This is a Docker setup for deploying your web application based on Django. It also contains tox file for testing your app.

Buy Me a Coffee at ko-fi.com

Requirements

You need to install Docker and Docker-Compose.

Production checklist

make sure your django app is configures for production use using this link.

Build

docker-compose build or make build.

Django models in database

docker-compose run --rm djangoapp /bin/bash -c 'cd hello; ./manage.py makemigrations'.

Migrate database

docker-compose run --rm djangoapp /bin/bash -c 'cd hello; ./manage.py migrate'.

Run

docker-compose up or make run.

Tests

  • make checksafety
  • make checkstyle
  • make test
  • make coverage

Reference

Example using Docker, Django, multiple Postgres databases, NginX, Gunicorn, pipenv, GitLab CI and tox

License

Software licensed under the ISC license.

About

This repository contains docker file for deploying django app on nginx server for production use.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.