-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
42 lines (36 loc) Β· 1008 Bytes
/
start.sh
File metadata and controls
42 lines (36 loc) Β· 1008 Bytes
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
#!/bin/bash
echo "π Starting Git Server with libgit2..."
echo ""
# Check if Docker is running
if ! docker info > /dev/null 2>&1; then
echo "β Error: Docker is not running. Please start Docker first."
exit 1
fi
# Check if Docker Compose is installed
if ! command -v docker-compose &> /dev/null; then
echo "β Error: docker-compose is not installed."
exit 1
fi
echo "π¦ Building and starting containers..."
docker-compose up -d --build
echo ""
echo "β³ Waiting for services to start..."
sleep 5
echo ""
echo "β
Services started successfully!"
echo ""
echo "π Service Status:"
docker-compose ps
echo ""
echo "π Available endpoints:"
echo " - REST API: http://localhost:3000"
echo " - API Documentation: http://localhost:3000/api-docs"
echo " - Health Check: http://localhost:3000/health"
echo " - gRPC Server: localhost:50051"
echo ""
echo "π View logs:"
echo " docker-compose logs -f"
echo ""
echo "π Stop services:"
echo " docker-compose down"
echo ""