-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-docker.bat
More file actions
47 lines (40 loc) · 1.4 KB
/
start-docker.bat
File metadata and controls
47 lines (40 loc) · 1.4 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
40
41
42
43
44
45
46
47
@echo off
echo Starting Spring Cloud Microservices with Docker...
echo.
echo Step 1: Cleaning up any existing containers...
docker-compose down -v
echo.
echo Step 2: Building all services...
call mvn clean package -DskipTests
echo.
echo Step 3: Starting infrastructure services first...
docker-compose up -d postgres mongodb redis rabbitmq zipkin prometheus grafana
echo Waiting for infrastructure services to be ready...
timeout /t 45 /nobreak > nul
echo.
echo Step 4: Starting microservices...
docker-compose up -d eureka-server
echo Waiting for Eureka Server...
timeout /t 60 /nobreak > nul
docker-compose up -d api-gateway user-service order-service notification-service admin-dashboard
echo Waiting for all services to start...
timeout /t 90 /nobreak > nul
echo.
echo Step 5: Checking service status...
docker-compose ps
echo.
echo ========================================
echo All services started successfully!
echo ========================================
echo.
echo Service URLs:
echo - Eureka Dashboard: http://localhost:8761
echo - API Gateway: http://localhost:8080
echo - Admin Dashboard: http://localhost:8090
echo - RabbitMQ Management: http://localhost:15672 (admin/admin123)
echo - Grafana: http://localhost:3000 (admin/admin123)
echo - Prometheus: http://localhost:9090
echo - Zipkin: http://localhost:9411
echo.
echo To view logs: docker-compose logs -f [service-name]
echo To stop all: docker-compose down