42 lines
985 B
Bash
Executable File
42 lines
985 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
COMPOSE_FILE="$ROOT_DIR/docker/docker-compose.yml"
|
|
|
|
if ! command -v docker >/dev/null 2>&1; then
|
|
echo "docker command not found"
|
|
exit 1
|
|
fi
|
|
|
|
if ! docker info >/dev/null 2>&1; then
|
|
echo "docker daemon is not running or is not accessible"
|
|
echo "start Docker Desktop or the local docker service, then rerun this script"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$ROOT_DIR"
|
|
docker compose -f "$COMPOSE_FILE" up -d
|
|
|
|
cat <<'EOF'
|
|
|
|
ABC User Feedback stack started.
|
|
|
|
Open these URLs:
|
|
- Web UI: http://localhost:3002
|
|
- API Docs: http://localhost:4000/docs
|
|
- Support API Docs: http://localhost:8010/docs
|
|
- SMTP Test Inbox: http://localhost:5080
|
|
|
|
Database ports:
|
|
- ABC MySQL: 127.0.0.1:13306 / database userfeedback
|
|
- Secretary MySQL: 127.0.0.1:13308 / database baron_support
|
|
|
|
First-run flow in the product:
|
|
1. Create tenant and admin account
|
|
2. Login
|
|
3. Create project
|
|
4. Create channel
|
|
5. Generate API key
|
|
6. Post first feedback
|
|
EOF |