zkt26/z1/start-app.sh

46 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# =============================================
# start-app.sh
# Starts all Task Manager application services
# =============================================
set -e
echo "============================================="
echo " Starting Task Manager Application..."
echo "============================================="
echo ""
# Navigate to the script's directory
cd "$(dirname "$0")"
# Start all services in detached mode
echo "[1/2] Starting containers..."
docker compose up -d
echo ""
# Wait a moment for services to initialize
echo "[2/2] Waiting for services to be ready..."
sleep 5
# Check health status
echo ""
echo " Container Status:"
echo " -----------------"
docker compose ps --format "table {{.Name}}\t{{.Status}}\t{{.Ports}}"
echo ""
echo "============================================="
echo " ✓ Application is running!"
echo ""
echo " 🌐 Task Manager: http://localhost:5000"
echo " 🗄️ Adminer (DB): http://localhost:5001"
echo ""
echo " Adminer login credentials:"
echo " System: PostgreSQL"
echo " Server: postgres"
echo " Username: taskuser"
echo " Password: taskpass"
echo " Database: taskmanager"
echo "============================================="