forked from ShaoZhi21/Govly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-start.sh
More file actions
executable file
·35 lines (28 loc) · 883 Bytes
/
Copy pathdocker-start.sh
File metadata and controls
executable file
·35 lines (28 loc) · 883 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
#!/bin/bash
echo "🚀 Starting Govly with Docker Compose..."
# Check if .env file exists
if [ ! -f .env ]; then
echo "⚠️ .env file not found!"
echo "📝 Please copy env.example to .env and fill in your API keys:"
echo " cp env.example .env"
echo " # Then edit .env with your actual keys"
exit 1
fi
# Build and start services
echo "🔨 Building Docker images..."
docker-compose build
echo "🚀 Starting services..."
docker-compose up -d
echo "⏳ Waiting for services to be ready..."
sleep 10
# Check service status
echo "📊 Service Status:"
docker-compose ps
echo ""
echo "🎉 Govly is starting up!"
echo "🌐 Frontend: http://localhost:3000"
echo "🔧 Backend: http://localhost:8000"
echo ""
echo "📝 To view logs: docker-compose logs -f"
echo "🛑 To stop: docker-compose down"
echo "🔄 To restart: docker-compose restart"