Docker development environment for Django app
-
Clone the app
-
cd into the project
In terminal: 3. $ docker build .
-
$ docker-compose build
-
$ docker-compose run ddda sh -c “django-admin.py startproject app .”
-
$docker-compose up
Then visit http://localhost:8000/
- $ 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!