Copy configDefault.py as config.py and adjust to your settings.
Run:
docker-compose -f docker-compose-dev.yml up --build -d
Docker image for your app should be built and postgres docker image should be pulled. Your app should be running at 127.0.0.1:8000.
If postgres container wasn't created before (or if postgres volume was removed), it will have no users. To create superuser you can use the following:
docker exec -it nkrsisystem-nkrsi-system-1 bash
to start bash session inside the container. To create superuser use the following command:
python manage.py createsuperuser
You will be asked for email and password.
It is more convenient way of developing because after changing file at your PC webpage will be automatically refreshed.
Run:
docker-compose -f docker-postgres.yml up -d
To run app use the following command:
python ./manage.py migrate; python ./manage.py compilemessages -l pl; python ./manage.py runserver 0.0.0.0:8000;
Your app should be running at 127.0.0.1:8000.
To create superuser you can use:
python manage.py createsuperuser
You will be asked for email and password.