new changes

This commit is contained in:
Niranjan
2026-04-07 20:57:48 +05:30
parent 0732a2eba6
commit 8e166c8bde
9 changed files with 136 additions and 20 deletions

View File

@@ -32,6 +32,7 @@ sudo usermod -aG docker "$USER"
echo "[5/6] Initializing YakPanel environment file..."
cd "$(dirname "$0")/.."
cp -n .env.example .env || true
bash "$(dirname "$0")/ensure-env-ports.sh"
echo "[6/6] Starting YakPanel dev stack..."
# Use scripts/docker-compose.sh so compose works in this shell even when docker group
@@ -41,10 +42,17 @@ bash "$(dirname "$0")/docker-compose.sh" run --rm db-migrate
echo
echo "YakPanel dev stack started."
echo "API: http://localhost:8080/health"
echo "PostgreSQL: localhost:5432"
echo "Redis: localhost:6379"
echo "NATS monitor: http://localhost:8222"
echo "MinIO console: http://localhost:9001"
dotenv_get() { grep -E "^${1}=" .env 2>/dev/null | tail -1 | cut -d= -f2- | tr -d '\r'; }
_API="$(dotenv_get API_PORT)"
_PG="$(dotenv_get POSTGRES_PORT)"
_RD="$(dotenv_get REDIS_PORT)"
_NATS_MON="$(dotenv_get NATS_MONITOR_PORT)"
_MINIO_C="$(dotenv_get MINIO_CONSOLE_PORT)"
echo "API: http://localhost:${_API}/health"
echo "PostgreSQL: localhost:${_PG}"
echo "Redis: localhost:${_RD}"
echo "NATS monitor: http://localhost:${_NATS_MON}"
echo "MinIO console: http://localhost:${_MINIO_C}"
echo "(Ports come from .env; defaults avoid system PostgreSQL/Redis on 5432/6379.)"
echo
echo "Docker group is configured; if a future terminal still cannot run docker, log out and back in once."