Skip to content

Commit

Permalink
change to docker compose v2 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshojha committed Jul 5, 2024
1 parent 67e4e63 commit fd06fd2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ set COMPOSE_ALL_FILES = -f docker-compose.yml
set SERVICES = db web proxy redis celery celery-beat ollama

:: Check if 'docker compose' command is available
where docker-compose >nul 2>&1
docker compose version >nul 2>&1
if %errorlevel% == 0 (
set DOCKER_COMPOSE=docker-compose
) else (
set DOCKER_COMPOSE=docker compose
) else (
set DOCKER_COMPOSE=docker-compose
)


:: Generate certificates.
if "%1" == "certs" %DOCKER_COMPOSE% -f docker-compose.setup.yml run --rm certs
:: Generate certificates.
Expand Down

0 comments on commit fd06fd2

Please sign in to comment.