change the settings in manage.py to production.
docker-compose -f docker-compose.production.yaml up --build
change the settings in manage.py to production.
then bring up postgres using docker-compose with below command:
docker-compose -f docker-compose.development.yaml up --build
after that run django server locally using below command:
./manage.py runserver
change the settings in manage.py to test.
then run django tests using below command:
docker-compose -f docker-compose.test.yaml up --build --exit-code-from poshtiban
after that it will jump out of containers when it finishes testing.