#!/usr/bin/env bash
# ALM Talent - "docker compose" for this deploy folder, from any directory. DRAFT, prep/deploy.
#   bin/alm ps                      what is running
#   bin/alm logs -f --tail=100 api  follow the API log
#   bin/alm exec api php artisan about
#   bin/alm --profile tools run --rm backup snapshots
set -euo pipefail
DEPLOY_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/.." && pwd)"
exec docker compose --project-directory "$DEPLOY_DIR" -f "$DEPLOY_DIR/docker-compose.yml" \
    --env-file "$DEPLOY_DIR/.env.production" "$@"
