Ajout de scripts adaptés pour rouler en local sans impacter le déploiement dans Coolify

This commit is contained in:
François Pelletier 2025-01-15 21:54:58 -05:00
parent d7840bb928
commit 128d29d139
4 changed files with 111 additions and 117 deletions

View file

@ -12,5 +12,14 @@ if (!(Test-Path .env)) {
exit 1
}
# Run docker-compose
docker-compose --env-file .env up --build
# Check if docker-compose-local.yml file exists
if (!(Test-Path docker-compose-local.yml)) {
Write-Host "docker-compose-local.yml file not found. Please create it and try again."
exit 1
}
# Set a custom project name (which will be used for the network name)
$env:COMPOSE_PROJECT_NAME = "fabriquedoc"
# Run docker-compose with the local configuration
docker-compose -f docker-compose-local.yml --env-file .env up --build