Developer : Khairi Brahmi
The steps below will get you up and running with a local development environment. All of these commands assume you are in the root of your project.
- Docker
- Docker Compose
This can take a while, especially the first time you run this particular command on your development system::
$ docker-compose -f docker-compose.yml build
As with any shell command that we wish to run in our container, this is done using the docker-compose -f docker-compose.yml run --rm
command:
$ docker-compose -f docker-compose.yml run --rm web-django python manage.py migrate
$ docker-compose -f docker-compose.yml run --rm web-django python manage.py createsuperuser
$ docker-compose -f docker-compose.yml run --rm web-django python manage.py makemigrations
Here, web-django
is the target service we are executing the commands against.
$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
$ docker system prune
$ docker system prune --volumes