Runtime Topology: 005-postgres-database-replacement
Parent state: 004-containerized-compose-runtime
State 005 preserves the compose + ingress topology from state 004 and replaces only the database runtime implementation.
Entrypointsβ
- Browser/UI via NGINX ingress:
http://localhost:8080 - Reference-data direct (diagnostic):
http://localhost:18085 - PostgreSQL TCP (diagnostic/local tooling):
localhost:18083 -> container:5432
Componentsβ
database-> PostgreSQL container (postgres:16-alpine)reference-data-> unchanged from state004trade-feed-> unchanged from state004people-service-> unchanged from state004account-service-> datasource updated for PostgreSQLposition-service-> datasource updated for PostgreSQLtrade-processor-> datasource + JPA dialect updated for PostgreSQLtrade-service-> unchanged from state004web-front-end-angular-> unchanged from state004ingress-> unchanged from state004(database route retained for topology compatibility but no H2 console)
Networkingβ
- Container-to-container DB connectivity uses
database:5432. - Host-to-container DB diagnostics use
localhost:18083. - Service cross-calls and ingress path routing are unchanged from state
004.
Startup / Health Orderβ
databasestarts and passespg_isreadyhealth check.- DB-dependent services (
account-service,position-service,trade-processor) start. - Remaining services and
ingressstart. - Smoke checks verify baseline API/UI and realtime behaviors remain intact.