#!/usr/bin/env bash # up.sh — bring up the project's docker-compose stack. # Wrapper around `docker compose up -d` so every project has the same verb. # Add project-specific pre/post steps below. set -euo pipefail HERE="$(cd "$(dirname "$0")" && pwd)" # shellcheck disable=SC1091 source "$HERE/lib/common.sh" REPO_ROOT="$(repo_root)" cd "$REPO_ROOT" COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yml}" [ -f "$COMPOSE_FILE" ] || die "no $COMPOSE_FILE — copy docker-compose.yml.example to $COMPOSE_FILE first" log_step "Bringing up stack ($COMPOSE_FILE)" docker compose -f "$COMPOSE_FILE" up -d log_ok "stack up" docker compose -f "$COMPOSE_FILE" ps