To run locally,
docker-compose up --build
for starting the whole process for the
first time. But it will throw an error saying that no .env file is found. To fix
it, go to config/.env.template file and follow the instructions. The default
settings there are "ok" for starting. docker exec [container name] command
ie not passing the i and t flags which respectively mean interactive and allocate
a tty. Learn more on
docker exec) which will probably
be named something like "backend-[db/web]-1" which you can confirm by running
docker ps
from a command line. To get inside and access the command line, run
docker exec -it [container name] bash
which will take you to a bash prompt. python manage.py migrate
. It's possible that you encounter some errors. Come to me in that case.
After that, you can populate the empty database by running fixtures one by one
python manage.py loaddata [name of fixture]
.