maison_alexandra/development/bin/docker_down.sh

20 lines
429 B
Bash
Executable File

#!/usr/bin/env bash
Green='\033[0;32m'
Color_Off='\033[0m'
# Check if we are in the project's root directory by checking for this script's directory
if [ ! -d "./development/bin" ]
then
echo "This script must be run from the root of the project"
exit 1
fi
# Tear down the Docker containers
echo -e "${Green}Tearing down Docker containers${Color_Off}"
echo
docker-compose -f docker-compose.yaml down || exit 1
exit 0