33 lines
974 B
Bash
33 lines
974 B
Bash
#!/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 "Starting application..."
|
|
# Prints a message so the user knows the startup process has begun
|
|
|
|
docker compose up -d
|
|
# Starts the services defined in docker-compose.yml in detached mode
|
|
# "detached mode" means the containers run in the background
|
|
|
|
echo ""
|
|
# Prints an empty line for cleaner terminal output
|
|
|
|
echo "Application started."
|
|
# Confirms that the application startup command completed successfully
|
|
|
|
echo "Open the website at:"
|
|
# Prints a label for the website address
|
|
|
|
echo " http://localhost:8080"
|
|
# Shows the browser address where the user can open the web application
|
|
|
|
echo ""
|
|
# Prints another empty line for readability
|
|
|
|
echo "To follow logs, run:"
|
|
# Prints a label for the log command
|
|
|
|
echo " docker compose logs -f"
|
|
# Shows the command that displays live logs from the running containers |