#!/bin/sh set -eu # Bootstrap lab4 stack with ≥2 API replicas behind LB, PostgreSQL, Redis and private S3. cd "$(dirname "$0")/.." REPLICAS="${API_REPLICAS:-2}" python3 scripts/init_secrets.py 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"