Files
AuthCentral/start-with-docker.sh
Beyhan Oğur 8b1fbdee99 first commit
2026-04-26 21:37:58 +03:00

36 lines
830 B
Bash

#!/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 ""