zkt26/z1/start-app.sh
2026-04-01 10:00:23 +02:00

35 lines
1.8 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# ============================================================
# start-app.sh Start all NitheeshWork services
# ============================================================
set -euo pipefail
echo "╔══════════════════════════════════════════════╗"
echo "║ NitheeshWork Start Application ║"
echo "╚══════════════════════════════════════════════╝"
cd "$(dirname "$0")"
echo ""
echo "▸ Starting services with docker compose…"
docker compose up -d --remove-orphans
echo ""
echo "▸ Waiting for services to become healthy…"
sleep 6
docker compose ps
echo ""
echo "╔══════════════════════════════════════════════════════╗"
echo "║ NitheeshWork is ready! ║"
echo "╠══════════════════════════════════════════════════════╣"
echo "║ 🌐 Web App (frontend) → http://localhost:8080 ║"
echo "║ 🔌 REST API (backend) → http://localhost:4000 ║"
echo "║ 🗄️ pgAdmin (DB UI) → http://localhost:5050 ║"
echo "║ ║"
echo "║ pgAdmin login: admin@nitheeshwork.com / adminpass ║"
echo "║ PostgreSQL: host=postgres db=taskdb ║"
echo "║ user=taskuser pass=taskpass ║"
echo "╚══════════════════════════════════════════════════════╝"