Setting up Chap REST-API locally¶
This is a short example for how to setup Chap-core locally as a service using docker-compose.
Requirements:
Docker is installed and running on your computer (Installation instructions can be found at https://docs.docker.com/get-started/get-docker/).
Step-by-Step Instructions:¶
Clone the Chap core repo by running
git clone https://github.com/dhis2-chap/chap-core.gitAdd the Google Earth Engine credentials to your Chap Core folder, as described here.
Then run the docker compose file with
docker compose -f compose.yml --env-file=.env up. The first time you do this, it can take a few minutes to finish. Once it’s completed, it should have created the following docker services:redisfor receiving and queueing job requestsworkerfor executing the incoming work requests from queuechapcontaining the main functionality and the rest-apipostgresfor storing chap-related data
Check that the chap rest api works by going to http://localhost:8000/docs