Productionize EventSphere platform

This commit is contained in:
Austin A
2026-04-25 21:02:19 +01:00
commit 1f1d30a9f5
171 changed files with 18682 additions and 0 deletions

15
backup-prod.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
ENV_FILE="${ENV_FILE:-.env.production}"
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.prod.yml}"
OUT_DIR="${OUT_DIR:-./backups}"
mkdir -p "$OUT_DIR"
timestamp="$(date +%Y%m%d_%H%M%S)"
outfile="$OUT_DIR/eventsphere_${timestamp}.dump"
docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" exec -T postgres pg_dump -U eventsphere -d eventsphere -Fc > "$outfile"
echo "$outfile"