fabriquedoc/run_docker_compose.sh
François Pelletier 4a6bfc951f Gros refactoring
2024-12-31 17:00:07 -05:00

24 lines
No EOL
475 B
Bash

#!/bin/bash
# Bash script (for Linux/macOS)
# Check if docker-compose is installed
if ! command -v docker-compose &> /dev/null
then
echo "docker-compose could not be found. Please install it and try again."
exit 1
fi
# Check if .env file exists
if [ ! -f .env ]; then
echo ".env file not found. Please create it and try again."
exit 1
fi
# Load environment variables from .env file
set -a
source .env
set +a
# Run docker-compose
docker-compose up --build