Ajout de scripts adaptés pour rouler en local sans impacter le déploiement dans Coolify
This commit is contained in:
parent
d7840bb928
commit
128d29d139
4 changed files with 111 additions and 117 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue