This repository was forked from the official Datahub project and does not have the latest update from the parent repository.
- Clone this repository in another directory.
- Switch to
last_stablebranch. - Run
docker build -t datahub:latest ..
- Clone dh-ghana repository (the version where it's still locally built - you can clone it from this fork).
- Copy the .env.example to .env:
cp .env.example .env. - Make sure to configure SECRET_KEY and DATAHUB_NAME in .env file.
- Run
docker compose up -dand wait until localhost:8000 is available.
- Download latest .dump file from the official release page to the directory
data/. - Run
docker compose exec datahub python manage.py restore data/<dump file> - Run
docker compose exec datahub python manage.py preprocess_shape_dl_year- This process can take a while (6-10 minutes in my case) as it's a synchronous process. - Go to
http://localhost:8000/dashboard/to see the dashboard homepage.