-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-and-run.bat
More file actions
27 lines (23 loc) · 851 Bytes
/
Copy pathbuild-and-run.bat
File metadata and controls
27 lines (23 loc) · 851 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
@echo off
REM Windows batch script for building and running the N|Solid MongoDB demo
REM Check if NSOLID_SAAS is set and not empty
if "%NSOLID_SAAS%"=="" (
echo Error: NSOLID_SAAS environment variable is not set or is empty.
echo Please set it using: set NSOLID_SAAS=your_token_here
pause
exit /b 1
)
REM Proceed to build the Docker image
echo Building Docker image with NSOLID_SAAS=%NSOLID_SAAS%...
docker build --build-arg NSOLID_SAAS="%NSOLID_SAAS%" -t mongodemo:latest .
REM Run the Docker containers using docker-compose
docker-compose up -d
echo.
echo Application started! Access it at:
echo - Web Interface: http://localhost:3000
echo - API Documentation: http://localhost:3000/api
echo - Health Check: http://localhost:3000/api/health
echo.
echo To view logs: docker-compose logs -f
echo To stop: docker-compose down
pause