#!/bin/sh set -eu # Bootstrap lab3 stack with ≥2 API replicas behind LB. cd "$(dirname "$0")/.." REPLICAS="${API_REPLICAS:-2}" docker compose --env-file .env config --quiet docker compose --env-file .env up -d --build --scale "api=${REPLICAS}" printf '%s\n' "stack up: api scale=${REPLICAS}, entry http://127.0.0.1:8080"