2020-02-19 15:55:06 +11:00
|
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2020-05-21 16:11:19 +10:00
|
|
|
|
. "$DIR/.common.sh"
|
2020-02-19 15:55:06 +11:00
|
|
|
|
|
|
|
|
|
# Ensure docker-compose exists
|
|
|
|
|
# Make sure docker exists
|
|
|
|
|
if hash docker-compose 2>/dev/null; then
|
|
|
|
|
cd "${DIR}/.."
|
|
|
|
|
echo -e "${BLUE}❯ ${CYAN}Stopping Dev Stack ...${RESET}"
|
|
|
|
|
docker-compose down --remove-orphans
|
|
|
|
|
else
|
|
|
|
|
echo -e "${RED}❯ docker-compose command is not available${RESET}"
|
|
|
|
|
fi
|