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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django-docker-helper-1.0.0.1.tar.gz.

File metadata

  • Download URL: django-docker-helper-1.0.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for django-docker-helper-1.0.0.1.tar.gz
Algorithm Hash digest
SHA256 e42b3a6b39503e0e0c0b9cb5ae4124f40b6622400bb8b30c2e651ee301e9aad2
MD5 f18dfa061acadd60414ab85134128ee4
BLAKE2b-256 ae9854b0fb2a68fcb78baf0641c3d3c21ad589d3f0e31820aa0674ff55d28a85

See more details on using hashes here.

File details

Details for the file django_docker_helper-1.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_docker_helper-1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe462e0578c073013d9fcb799c53474fd97130c2f5099338ad3c6e6f855282eb
MD5 742db0af965380d673ba2bc7dd41054f
BLAKE2b-256 11fe11603828b7d2c4139e0bbc4ddf73402027fdd7515e928b98ac22a06f74b8

See more details on using hashes here.

Supported by

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