first commit
This commit is contained in:
35
start-with-docker.sh
Normal file
35
start-with-docker.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "🚀 Starting GAuth-Central with Docker..."
|
||||
echo ""
|
||||
|
||||
# Check if .env exists
|
||||
if [ ! -f .env ]; then
|
||||
echo "⚠️ .env file not found. Creating from .env.example..."
|
||||
cp .env.example .env
|
||||
echo "✅ Please edit .env file with your configuration"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# Start services
|
||||
echo "📦 Starting PostgreSQL, Redis, and Application..."
|
||||
docker-compose up -d
|
||||
|
||||
echo ""
|
||||
echo "✅ Services started successfully!"
|
||||
echo ""
|
||||
echo "📊 Service Status:"
|
||||
docker-compose ps
|
||||
|
||||
echo ""
|
||||
echo "🌐 Application URLs:"
|
||||
echo " - API: http://localhost:8080"
|
||||
echo " - Swagger Docs: http://localhost:8080/docs/index.html"
|
||||
echo " - Health Check: http://localhost:8080/"
|
||||
echo ""
|
||||
echo "📝 To view logs:"
|
||||
echo " docker-compose logs -f app"
|
||||
echo ""
|
||||
echo "🛑 To stop services:"
|
||||
echo " docker-compose down"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user