Skip to content

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

License

Notifications You must be signed in to change notification 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