UI overhaul applying jury dashboard design patterns across all pages: - Stat cards with border-l-4 accent + icon pills on admin, observer, mentor, applicant dashboards and reports - Card section headers with color-coded icon pills throughout - Hover lift effects (translate-y + shadow) on cards and list items - Gradient progress bars (brand-teal to brand-blue) platform-wide - AnimatedCard stagger animations on all dashboard sections - Auth pages with gradient accent strip and polished icon containers - EmptyState component upgraded with rounded icon pill containers - Replaced AI-looking icons (Brain/Sparkles/Bot/Wand2/Cpu) with descriptive alternatives across 12 files - Removed gradient overlay from jury dashboard header - Quick actions restyled as card links with group hover effects Backend improvements: - Team member invite emails with account setup flow and notification logging - Analytics routers accept edition-wide queries (programId) in addition to roundId - Round detail endpoint returns inline progress data (eliminates extra getProgress call) - Award voting endpoints parallelized with Promise.all - Bulk invite supports optional sendInvitation flag - AwardVote composite index migration for query performance Infrastructure: - Docker entrypoint with migration retry loop (configurable retries/delay) - docker-compose pull_policy: always for automatic image refresh - Simplified deploy/update scripts using docker compose up -d --pull always - Updated deployment documentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
85 lines
2.7 KiB
YAML
85 lines
2.7 KiB
YAML
# =============================================================================
|
|
# MOPC Platform - Production Docker Compose
|
|
# =============================================================================
|
|
# This stack contains only the Next.js app and PostgreSQL.
|
|
# MinIO and Poste.io are external services connected via environment variables.
|
|
#
|
|
# The app image is built by Gitea CI and pushed to the container registry.
|
|
# `pull_policy: always` ensures `docker compose up -d` checks for newer app images.
|
|
# The app entrypoint runs `prisma migrate deploy` before starting Next.js.
|
|
|
|
services:
|
|
app:
|
|
image: ${REGISTRY_URL}/mopc-app:latest
|
|
pull_policy: always
|
|
container_name: mopc-app
|
|
restart: unless-stopped
|
|
dns:
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
ports:
|
|
- "127.0.0.1:7600:7600"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_URL=postgresql://mopc:${DB_PASSWORD}@postgres:5432/mopc
|
|
- NEXTAUTH_URL=${NEXTAUTH_URL}
|
|
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
|
- AUTH_SECRET=${NEXTAUTH_SECRET}
|
|
- AUTH_TRUST_HOST=true
|
|
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
|
|
- MINIO_PUBLIC_ENDPOINT=${MINIO_PUBLIC_ENDPOINT:-}
|
|
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
|
|
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
|
|
- MINIO_BUCKET=${MINIO_BUCKET}
|
|
- SMTP_HOST=${SMTP_HOST}
|
|
- SMTP_PORT=${SMTP_PORT}
|
|
- SMTP_USER=${SMTP_USER}
|
|
- SMTP_PASS=${SMTP_PASS}
|
|
- EMAIL_FROM=${EMAIL_FROM}
|
|
- POSTE_API_URL=${POSTE_API_URL:-https://mail.monaco-opc.com}
|
|
- POSTE_ADMIN_EMAIL=${POSTE_ADMIN_EMAIL}
|
|
- POSTE_ADMIN_PASSWORD=${POSTE_ADMIN_PASSWORD}
|
|
- POSTE_MAIL_DOMAIN=${POSTE_MAIL_DOMAIN:-monaco-opc.com}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o}
|
|
- MAX_FILE_SIZE=${MAX_FILE_SIZE:-524288000}
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
networks:
|
|
- mopc-network
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "fetch('http://localhost:7600/api/health').then(r=>{if(!r.ok)throw r;process.exit(0)}).catch(()=>process.exit(1))"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: mopc-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=mopc
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_DB=mopc
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U mopc"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- mopc-network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
driver: local
|
|
|
|
networks:
|
|
mopc-network:
|
|
driver: bridge
|