- Clone this github repo
- Install Docker
- Prepare the docker image doing
docker compose build
ordocker-compose build
- Make sure the mapping of ports is correct in the
docker-compose.yaml
file - Run the docker image by doing:
docker compose up
ordocker-compose up
If all goes alright, the docker instance should be running. Now, connect to the app server and prepare the database and seed data:
- By doing
docker ps
you can find the running docker instances - Connect to the instance by doing:
docker exec -it <container name> /bin/bash
- Run the migrations:
python3 manage.py migrate
from the geodjango directory
Use this: psql -U geodjango -d gis
python3 manage.py migrate world 0010 will undo the migration starting with 0010
python3 manage.py showmigrations world