-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
executable file
·43 lines (36 loc) · 967 Bytes
/
Copy pathsetup.bat
File metadata and controls
executable file
·43 lines (36 loc) · 967 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
36
37
38
39
40
41
42
43
@echo off
setlocal enabledelayedexpansion
REM
if not exist "app-logs" (
mkdir "app-logs"
)
echo INFO: Checking configuration...
REM
if not exist ".env" (
copy .env.example .env >nul
echo INFO: Created .env from .env.example
)
REM
echo INFO: Initializing Docker containers...
REM
where docker-compose >nul 2>&1
if %errorlevel%==0 (
echo INFO: Using docker-compose
docker-compose up --build --no-start > app-logs\compose.log
) else (
docker --version >nul 2>&1
if %errorlevel%==0 (
docker compose version >nul 2>&1
if %errorlevel%==0 (
echo INFO: Using docker compose
docker compose up --build --no-start > app-logs\compose.log
) else (
echo ERROR: Docker Compose v2 not found. Please install it.
exit /b 1
)
) else (
echo ERROR: Docker is not installed. Please install Docker.
exit /b 1
)
)
echo SUCCESS: Initialization complete.