rcitterio / django-docker-dev-app

Docker development environment for Django app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-docker-dev-app

Docker development environment for Django app

  1. Clone the app

  2. cd into the project

In terminal: 3. $ docker build .

  1. $ docker-compose build

  2. $ docker-compose run ddda sh -c “django-admin.py startproject app .”

  3. $docker-compose up

Then visit http://localhost:8000/

  1. $ docker-compose exec ddda python manage.py migrate

From now onwards you will run django commands as the above command, adding your command after the service name ddda.

That’s it for now. I know it I simple and there are a lot of features we have not covered like database but this is a start!

About

Docker development environment for Django app

License:MIT License


Languages

Language:Python 86.2%Language:Dockerfile 13.8%