diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 5baf8da..46f8b9a 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -10,7 +10,12 @@ The deployment model is expected to follow the shared dev, QA, and production br - `DATABASE_URL` should target the environment-specific PostgreSQL instance. - Stripe and email provider secrets live in environment variables. +## Port Mapping + +- Dev: host port `7003` -> container port `3000` +- QA: host port `6003` -> container port `3000` +- Production: host port `5003` -> container port `3000` + ## Health Check - `GET /api/health` returns a lightweight JSON readiness response. - diff --git a/PROJECT.md b/PROJECT.md index 9e4a8f9..954ce56 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -26,8 +26,8 @@ Phase 1 scaffold started from the approved planning docs. - Base styling - Prisma schema - Health endpoint +- Environment ports aligned to `7003`, `6003`, and `5003` for dev, QA, and production ## Next Build Step - Wire the first data-backed screens after the foundation is in place. - diff --git a/README.md b/README.md index 50543d5..3773aa8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Planning workspace for the new project based on the functional specification. ## Current Status -Phase 1 scaffold has started. The repo now contains the Next.js app shell, Prisma schema, Docker entrypoint, and baseline project docs. +Phase 1 scaffold has started. The repo now contains the Next.js app shell, Prisma schema, Docker entrypoint, and baseline project docs. Environment ports are mapped to `7003` for Dev, `6003` for QA, and `5003` for Production. ## Working Rule diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 21d9e24..2e38daa 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -8,5 +8,4 @@ services: NODE_ENV: development NEXT_PUBLIC_SITE_URL: http://localhost:3000 ports: - - "${WEB_PORT:-3000}:3000" - + - "${WEB_PORT:-7003}:3000" diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index f1d5ecb..c59cfb6 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,5 +4,4 @@ services: NODE_ENV: production NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL:-https://example.com} ports: - - "${WEB_PORT:-3002}:3000" - + - "${WEB_PORT:-5003}:3000" diff --git a/docker-compose.qa.yml b/docker-compose.qa.yml index 91c0715..419e036 100644 --- a/docker-compose.qa.yml +++ b/docker-compose.qa.yml @@ -4,5 +4,4 @@ services: NODE_ENV: production NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL:-http://localhost:3001} ports: - - "${WEB_PORT:-3001}:3000" - + - "${WEB_PORT:-6003}:3000"