#!/usr/bin/env bash # Run the docker compose stack locally with podman, isolated from the real .env and data. # usage: scripts/local.sh up | down | reset | logs | ps # First run writes .env.local (random secrets, bound to 127.0.0.1). Set BASE_PATH or COOKIE_SECURE there to test them. set -euo pipefail cd "$(dirname "$0")/.." if [[ ! -f .env.local ]]; then cat > .env.local <&2; exit 1 ;; esac