Files
Convivo/apps/convivo/docker-entrypoint.sh
63aa4ecfc8 Phase 0 + 1: Dockerized Supabase core + attendee PWA
Phase 0 — Supabase core (Docker via CLI):
- Schema: profiles, slots, sessions, preferences, connections, checkins,
  feedback, leaderboard (Realtime mirror), points_log
- RLS on every table; transactional security-definer points RPCs
- Seed: 6 slots, 18 sessions, 13 demo users (QR token as auth password)

Phase 1 — Attendee web PWA (React + Vite + TS):
- Login via QR token + email (GoTrue, no email sent)
- Home, Agenda, Scan/Connect, staff Check-in, Feedback, live Leaderboard, Profile
- Same-origin proxy to Supabase (Vite dev / nginx in Docker)
- Docker: multi-stage build -> nginx sidecar on the Supabase network

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
2026-08-22 16:10:59 +02:00

20 lines
763 B
Bash

#!/bin/sh
# Convivo app — container entrypoint.
#
# Injects the Supabase proxy target into the nginx config template, then starts
# nginx. The target defaults to the Kong container on the shared Supabase
# network (supabase_kong_Convivo:8000 — Kong's internal port; 54321 is the
# host-only mapping). Override with SUPABASE_PROXY_TARGET
# (e.g. host.docker.internal:54321) if the core is not on the shared network.
set -eu
TARGET="${SUPABASE_PROXY_TARGET:-supabase_kong_Convivo:8000}"
TEMPLATE=/etc/nginx/conf.d/default.conf.template
CONF=/etc/nginx/conf.d/default.conf
echo "[convivo] Proxying Supabase paths to: ${TARGET}"
sed "s|__SUPABASE_PROXY_TARGET__|${TARGET}|g" "${TEMPLATE}" > "${CONF}"
# Run nginx in the foreground.
exec nginx -g "daemon off;"