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
- You can install Django Docker using pip:
pip install django-docker-helper
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-docker-helper-1.0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42b3a6b39503e0e0c0b9cb5ae4124f40b6622400bb8b30c2e651ee301e9aad2 |
|
MD5 | f18dfa061acadd60414ab85134128ee4 |
|
BLAKE2b-256 | ae9854b0fb2a68fcb78baf0641c3d3c21ad589d3f0e31820aa0674ff55d28a85 |
Close
Hashes for django_docker_helper-1.0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe462e0578c073013d9fcb799c53474fd97130c2f5099338ad3c6e6f855282eb |
|
MD5 | 742db0af965380d673ba2bc7dd41054f |
|
BLAKE2b-256 | 11fe11603828b7d2c4139e0bbc4ddf73402027fdd7515e928b98ac22a06f74b8 |