Web API for langaracpsc-next
- docker
- docker-compose
git clone https://github.com/langaracpsc/LangaraCPSC.WebAPI.git
cd LangaraCPSC.WebAPI;
git submodule update --init --remote opendatabaseapi;
git submodule update --init --remote KeyMan;
Put the Google service account credentials in keyfile.json
. The original credentials file can be downloaded from Google cloud console. More Info;
Create a .env
file from .templateenv
and set the variables as mentioned.
mkdir data && mkdir data/db;
docker compose -f ./docker-compose.yml up -d;
CONTAINER is the id of the postgres container. To get that, run
docker container ls
Look for the container with name langaracpscwebapi-postgres_image-1
cp /path/to/dump data/db; # copy the dump to the volume
docker exec -it -u postgres <CONTAINER> bash; # access the container
psql < data/dump;