build(sprint-20): add staging compose#82
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sprint 20.2 — Compose staging local
Resumen
Añade
docker-compose.staging.ymlpara levantar en local el stack staging completo deJobIT: PostgreSQL, API y Web, con red interna, volúmenes persistentes y healthchecks
(ADR-0012, opción B).
Cambios principales
docker-compose.staging.yml(único archivo).jobit-stagingy red interna dedicada.jobit-staging-db-data) y uploads de la API(
jobit-staging-api-uploads).postgres:16sin puerto publicado al host (estructural).4000/3000solo para smoke local (comentado: en el VPS no sepublicarían; NPM accede por red interna).
pg_isready), API (/health) y Web (/) connode -e fetch.builderdel Dockerfilede la API, nunca automáticos.
Validaciones realizadas
docker compose config/build/up -d→ OK; los 3 servicioshealthy.GET http://localhost:4000/health→ 200;GET http://localhost:3000/→ 200.POST /api/auth/register→ 201 (valida elcliente Prisma re-inyectado y el engine OpenSSL con queries reales).
docker compose downsin-v; volúmenes locales (datos dummy) conservadospara la fase 20.4.
Decisiones técnicas
builderdel mismo Dockerfile (comandos documentados en la cabecera del compose).NEXT_PUBLIC_API_BASE_URLdifiere entre local y VPS: rebuild por entorno(ya documentado en spec).
Riesgos pendientes
Fuera de alcance respetado
Siguiente fase
Sprint 20.3 — plantillas env seguras para staging con placeholders y documentación de la
ubicación de los secretos reales fuera del repo.
Revisión
PR lista para revisión humana. No mergear por CLI.