#!/usr/bin/env bash # Uses the user's Bash interpreter to run this script set -e # Stops the script immediately if any command fails echo "Stopping application services..." # Prints a message so the user knows the shutdown process has started docker compose stop # Stops the running containers defined in docker-compose.yml # The containers are stopped but not deleted echo "Application stopped." # Confirms that the application services were stopped successfully echo "State is preserved because containers were stopped, not removed." # Explains that data and container state are still kept # because stop does not remove containers or volumes