ClaytonBrezinski / Docker-Django

A base Docker image for a Django web framework, PostgreSQL database, RabbitMQ task scheduler, and Celery worker build.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker-Django

A base Docker image which utilizes a separate container for Django's web environment, the postgreSQL database, the rabbitMQ task scheduler, and each of the celery workers. The postgreSQL database is an external container to the project which allows for the database to persist between running docker instances.

Requirements

Techs used

  • Python 3.6
  • Django
  • PostgreSQL
  • Celery
  • Rabbit MQ

Instructions

Clone the repository onto your machine

git clone https://github.com/OriginalMidas/Docker-Django.git

Using build install the requirements and preform the admin work specified within Dockerfile

docker-compose build

At this point you may run into the issue of Docker not being able to see the required drives on your machine. Follow the information here:

Once past this, you can turn on all of the docker containers at once using

docker-compose up

Other useful CLI commands

# Stop all docker containers currently running without removing them
docker-compose stop
# Start docker containers for a service
docker-compose start [SERVICE_NAME]
# View all currently running docker containers
docker-compose ps
docker ps
# Run docker service in headless mode so you can perform other operations on the command line
docker-compose up -d

About

A base Docker image for a Django web framework, PostgreSQL database, RabbitMQ task scheduler, and Celery worker build.

License:MIT License


Languages

Language:Python 92.4%Language:Shell 7.6%