ApplicantPortal/stop.sh

29 lines
460 B
Bash
Raw Normal View History

2025-03-13 02:43:26 +00:00
#!/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