blob: 534c7bab7e134f7f7b3ff4a4d54f73bd38c9e4b0 [file]
#!/bin/bash
# Find the git root directory dynamically
GIT_ROOT=$(git rev-parse --show-toplevel)
# Check if --build parameter is passed
if [[ $1 == "--build" ]]; then
# Run docker-compose up with project directory, verbose mode and build
docker-compose --verbose --project-directory "$GIT_ROOT/ui" -f "$GIT_ROOT/ui/deployment/docker-compose-prod.yml" up --build
else
# Run docker-compose up with project directory and verbose mode
docker-compose --verbose --project-directory "$GIT_ROOT/ui" -f "$GIT_ROOT/ui/deployment/docker-compose-prod.yml" up
fi