ApplicantPortal/stop.sh
2025-03-12 20:43:26 -06:00

29 lines
460 B
Bash

#!/usr/bin/env bash
show_help() {
echo "Stop
A script to stop the web app's docker containers
Usage: stop.sh [OPTIONS]
Options:
-h|--help: Shows this help message.
"
}
while [[ "$#" -gt 0 ]]; do
case "$1" in
-h|--help)
show_help
exit
;;
*)
echo "Invalid argument given ($1)"
exit 1
;;
esac
done
cur_dir="$(cd "$( dirname "$0")" && pwd)"
docker-compose -f "$cur_dir/docker/docker-compose.yaml" down