Add complete deployment toolchain for the Genex Admin Web (React + Next.js), mirroring the proven deployment pattern from the rwadurian project. ## Files added ### deploy.sh — One-click deployment script - Commands: build / start / stop / restart / logs / status / clean - Auto-detects `docker compose` vs `docker-compose` - Port conflict detection with auto-stop of old service - Health check verification after startup - Supports PORT env override (default: 3000) ### Dockerfile — Multi-stage production build - Stage 1 (deps): node:20-alpine, npm ci for deterministic installs - Stage 2 (builder): Next.js production build with telemetry disabled - Stage 3 (runner): Minimal runtime with standalone output - Non-root user (nextjs:nodejs) for security - curl installed for container health checks ### docker-compose.yml — Container orchestration - Service: genex-admin-web on genex-network bridge - Health check: GET /api/health every 30s, 3 retries - Auto-restart: unless-stopped policy - Timezone: Asia/Shanghai ### .env.development — Local dev environment - API: http://localhost:8080/api ### .env.production — Production environment - API: https://api.gogenex.com/api Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .env.development | ||
| .env.production | ||
| Dockerfile | ||
| deploy.sh | ||
| docker-compose.yml | ||