Skip to main content

A Django package to simplify the creation of Dockerfile and docker-compose.yml files.

Project description

Django Docker

Django Docker is a Django package that simplifies the creation of Dockerfile and docker-compose.yml files for Django projects.

Features

  • Easily generate Dockerfile and docker-compose.yml files.
  • Interactively configure Docker services.
  • Seamlessly integrate Docker support into your Django projects.

Current Services

  • PostgeSQL
  • MySQL
  • Redis
  • Rabbitmq
  • Nginx

Requirements

  • Docker

Installation

  1. You can install Django Docker using pip:
pip install django-docker-helper
  1. Add "django_docker_helper" to your installed apps

Creating a Dockerfile

python manage.py docker_file generate

Building the Dockerfile image

python manage.py docker_file build

Creating a docker-compose.yml file

python manage.py docker_compose generate

Building the docker-compose.yml image

python manage.py docker_compose up

or

python manage.py docker_compose up --build

to build Docker images before starting containers.

Stopping and removing resources

python manage.py docker_compose down

or

python manage.py docker_compose down --remove-orphans

remove containers for services not defined in the Compose file

Documentation and addition of more services underway....

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-docker-helper-1.0.0.1.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

django_docker_helper-1.0.0.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page