-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·87 lines (82 loc) · 2.99 KB
/
start.sh
File metadata and controls
executable file
·87 lines (82 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# Check if docker is installed
if ! command -v docker &> /dev/null; then
echo "Docker is not installed!"
echo ""
echo "Installation instructions:"
echo ""
# Detect OS
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if grep -qi microsoft /proc/version 2>/dev/null; then
echo "WSL2 detected - Install Docker Desktop for Windows:"
echo "1. Download from: https://www.docker.com/products/docker-desktop"
echo "2. Run the installer"
echo "3. Enable WSL2 integration in Docker Desktop settings"
else
echo "Linux detected - Install Docker Engine:"
echo "curl -fsSL https://get.docker.com -o get-docker.sh"
echo "sudo sh get-docker.sh"
echo "sudo usermod -aG docker \$USER"
echo "newgrp docker"
echo ""
echo "Or visit: https://docs.docker.com/engine/install/"
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "macOS detected - Install Docker Desktop:"
echo "1. Download from: https://www.docker.com/products/docker-desktop"
echo "2. Drag Docker.app to Applications"
echo "3. Open Docker from Applications"
echo ""
echo "Or use Homebrew: brew install --cask docker"
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
echo "Windows detected - Install Docker Desktop:"
echo "1. Download from: https://www.docker.com/products/docker-desktop"
echo "2. Run the installer"
echo "3. Restart your computer"
else
echo "Visit: https://docs.docker.com/get-docker/"
fi
exit 1
fi
echo "Starting services..."
docker compose up -d
echo ""
echo "==================================="
echo "Connection Details"
echo "==================================="
echo ""
echo "PostgreSQL:"
echo " Host: localhost"
echo " Port: 5432"
echo " User: postgres"
echo " Password: postgres"
echo " Database: postgres"
echo " Connection String: postgresql://postgres:postgres@localhost:5432/postgres"
echo " Web UI: http://localhost:15080 (pgweb)"
echo ""
echo "Valkey (Redis):"
echo " Host: localhost"
echo " Port: 6379"
echo " Connection String: redis://localhost:6379"
echo " Web UI: http://localhost:15081 (Redis Commander)"
echo ""
echo "Redpanda (Kafka):"
echo " Kafka Broker: localhost:19092"
echo " Schema Registry: http://localhost:18081"
echo " Pandaproxy (REST): http://localhost:18082"
echo " Admin API: http://localhost:19644"
echo " Web UI: http://localhost:15082 (Redpanda Console)"
echo " "
echo "==================================="
echo "Web UIs Summary"
echo "==================================="
echo ""
echo " PostgreSQL (pgweb): http://localhost:15080"
echo " Valkey (Redis Commander): http://localhost:15081"
echo " Redpanda Console: http://localhost:15082"
echo ""
echo "==================================="
echo ""
echo "For code examples and detailed usage, see GETTING_STARTED.md"
echo "To stop services: ./stop.sh"
echo ""