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

@ -15,6 +15,12 @@ if [ ! -f .env ]; then
exit 1
fi
# Check if docker-compose-local.yml file exists
if [ ! -f docker-compose-local.yml ]; then
echo "docker-compose-local.yml file not found. Please create it and try again."
exit 1
fi
# Load environment variables from .env file
set -a
source .env
@ -23,5 +29,5 @@ set +a
# Set a custom project name (which will be used for the network name)
PROJECT_NAME="fabriquedoc"
# Run docker-compose with the custom project name
docker-compose --project-name $PROJECT_NAME up --build
# Run docker-compose with the custom project name and local configuration
docker-compose -f docker-compose-local.yml --project-name $PROJECT_NAME up --build