#! /usr/bin/env bashusage(){echo"usage: ./run-compose.sh [<rebuild>]"echo" rebuild - will force docker-compose to rebuild the images before spinning them up."echo" tests - run the test suite rather than the application."}if[[-z"${DATA_DIR}"]];thenDATA_DIR=$(pwd)fiwhile[-n"$1"];do case$1inrebuild)EXTRA_ARGS="--build";; tests) docker-compose -f docker/docker-compose-test.yaml up --buildexit 0;;*) usageexit 0;;esacshiftdonedocker-compose -f docker/docker-compose.yaml up $EXTRA_ARGS