24 lines
475 B
Bash
24 lines
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
|