All Projects → pawamoy → Docker Nginx Postgres Django Example

pawamoy / Docker Nginx Postgres Django Example

Licence: isc
Example using Docker, Django, multiple Postgres databases, NginX, Gunicorn, pipenv, GitLab CI and tox.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Docker Nginx Postgres Django Example

Django React Boilerplate
DIY Django + React Boilerplate for starting your SaaS
Stars: ✭ 385 (+250%)
Mutual labels:  postgresql, django, docker-compose, nginx
Django Celery Docker Example
Example Docker setup for a Django app behind an Nginx proxy with Celery workers
Stars: ✭ 149 (+35.45%)
Mutual labels:  django, docker-compose, nginx
Docker Django
A project to get you started with Docker and Django.
Stars: ✭ 170 (+54.55%)
Mutual labels:  postgresql, django, nginx
Symfony 4 Docker Env
Docker Environment for Symfony. PHP-FPM, NGINX SSL Proxy, MySQL, LEMP
Stars: ✭ 119 (+8.18%)
Mutual labels:  postgresql, docker-compose, nginx
Devilbox
A modern Docker LAMP stack and MEAN stack for local development
Stars: ✭ 3,598 (+3170.91%)
Mutual labels:  postgresql, docker-compose, nginx
Docker Django Nginx Uwsgi Postgres Tutorial
Docker + Django + Nginx + uWSGI + Postgres 基本教學 - 從無到有 ( Docker + Django + Nginx + uWSGI + Postgres Tutorial )
Stars: ✭ 334 (+203.64%)
Mutual labels:  postgresql, django, nginx
Hydroshare
HydroShare is a collaborative website for better access to data and models in the hydrologic sciences.
Stars: ✭ 117 (+6.36%)
Mutual labels:  postgresql, django, nginx
Python Microservice Fastapi
Learn to build your own microservice using Python and FastAPI
Stars: ✭ 96 (-12.73%)
Mutual labels:  postgresql, docker-compose, nginx
Docker Laravel
🐳 Docker Images for Laravel development
Stars: ✭ 101 (-8.18%)
Mutual labels:  postgresql, docker-compose, nginx
Filterlists
🛡 The independent, comprehensive directory of filter and host lists for advertisements, trackers, malware, and annoyances.
Stars: ✭ 653 (+493.64%)
Mutual labels:  postgresql, docker-compose, nginx
Docker For Local Development
This project provides a basic Docker setup, for building a local development environment for Zend Expressive, and other PHP application development.
Stars: ✭ 74 (-32.73%)
Mutual labels:  docker-compose, nginx
Uranus
Hierarchical Memo & Task Web-App
Stars: ✭ 71 (-35.45%)
Mutual labels:  postgresql, docker-compose
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-37.27%)
Mutual labels:  docker-compose, nginx
Docker Magento Mutagen
Mage2click Docker-based development environment for Magento with mutagen.io sync for files on macOS
Stars: ✭ 64 (-41.82%)
Mutual labels:  docker-compose, nginx
Sanic Nginx Docker Example
Sanic + Nginx + Docker basic example
Stars: ✭ 77 (-30%)
Mutual labels:  docker-compose, nginx
Generic django project
starting point for a new Django site (with FeinCMS, deployable on Nginx using Fabric)
Stars: ✭ 76 (-30.91%)
Mutual labels:  django, nginx
Nuxx
Visual Docker composer for faster development. Discover, leverage, and launch community recipes.
Stars: ✭ 79 (-28.18%)
Mutual labels:  django, docker-compose
Docker Cloud Platform
使用Docker构建云平台,Docker云平台系列共三讲,Docker基础、Docker进阶、基于Docker的云平台方案。OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 86 (-21.82%)
Mutual labels:  docker-compose, nginx
Docker Django Example
A production ready example Django app that's using Docker and Docker Compose.
Stars: ✭ 86 (-21.82%)
Mutual labels:  django, docker-compose
Django Tsvector Field
Django field for tsvector (PostgreSQL full text search vector) with managed stored procedure and triggers.
Stars: ✭ 56 (-49.09%)
Mutual labels:  postgresql, django

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

This is a Docker setup for a web application based on Django.

  • The Django application is served by Gunicorn (WSGI application).
  • We use NginX as reverse proxy and static files server. Static and media files are persistently stored in volumes.
  • Multiple Postgres databases can be used. Data are persistently stored in volumes.
  • Python dependencies are managed through pipenv, with Pipfile and Pipfile.lock.
  • Support for multiple environment settings (variable DJANGO_SETTINGS_MODULE is passed to the djangoapp service).
  • Tests are run using tox, pytest, and other tools such as safety, bandit, isort and prospector.
  • Continuous Integration is configured for GitLab with .gitlab-ci.yml. CI follows a Build-Test-Release flow. WARNING: this part is not fully functional yet.

Also a Makefile is available for convenience. You might need to use sudo make instead of just make because docker and docker-compose commands often needs admin privilege.

Requirements

You need to install Docker and Docker-Compose.

Build

docker-compose build or make build.

Migrate databases

docker-compose run --rm djangoapp hello/manage.py migrate or make migrate.

Collect static files

docker-compose run --rm djangoapp hello/manage.py collectstatic --no-input' or make collectstatic.

Run

docker-compose up or make run.

Tests

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

Related blog post

Docker Compose with NginX, Django, Gunicorn and multiple Postgres databases

License

Software licensed under the ISC license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].