-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-services.sh
More file actions
executable file
·39 lines (30 loc) · 1.14 KB
/
start-services.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.14 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
#!/bin/bash
echo "🚀 Starting Todo App Services with Docker Compose..."
# Change to the script directory
cd "$(dirname "$0")"
# Stop any existing containers
echo "🧹 Cleaning up existing containers..."
docker-compose -f docker-compose.dev.yml down 2>/dev/null || true
# Start all services with Docker Compose
echo "🐳 Starting all services with Docker Compose..."
docker-compose -f docker-compose.dev.yml up --build -d
# Wait for services to be ready
echo "⏳ Waiting for services to be ready..."
sleep 10
# Check service health
echo "🔍 Checking service health..."
docker-compose -f docker-compose.dev.yml ps
echo ""
echo "✅ All services started!"
echo "🌐 Frontend: http://localhost:3000"
echo "🔧 Backend: http://localhost:3001"
echo "🐘 PostgreSQL: localhost:5432"
echo "🔴 Redis: localhost:6380"
echo ""
echo "📊 Container status:"
docker-compose -f docker-compose.dev.yml ps
echo ""
echo "📝 Useful commands:"
echo " View logs: docker-compose -f docker-compose.dev.yml logs -f"
echo " Stop services: docker-compose -f docker-compose.dev.yml down"
echo " Restart services: docker-compose -f docker-compose.dev.yml restart"