docker build -t djangoapp .
docker-compose up
These additional commands are needed to run data migrations and to create a user for the applicaiton.
Run migrations and exit.
docker-compose exec djangoapp python manage.py migrate
Note: the use of run
allows you to have an interactive session while creating the superuser.
docker-compose run djangoapp python manage.py createsuperuser