feat: add down flag for stopping environment

This commit is contained in:
Mythie
2023-04-09 22:33:14 +10:00
parent 5dd3713475
commit 49cb50ed6e

View File

@ -28,6 +28,12 @@ pushd "$MONOREPO_ROOT" >/dev/null
# On failure popd back to the original directory
trap "popd >/dev/null" EXIT
# If we have received the -down or -d flag, stop the containers
if [ "$1" = "-down" ] || [ "$1" = "-d" ]; then
docker-compose -f "$MONOREPO_ROOT/docker/compose-without-app.yml" down
exit 0
fi
docker-compose -f "$MONOREPO_ROOT/docker/compose-without-app.yml" up -d
# Install dependencies