[INFRA-GOV-01] Deployment of an Isolated SOAP Government Services Simulator (Sandbox)
Infrastructure and Environment
NoteTask Brief
- Repository / Component:
gov_identity_soap_mock. - Stack: Go (1.27+), Docker Compose, PostgreSQL 15.
- Task Type: DevOps / Infra.
- Status: Ready for Implementation
Task Description
To test corporate employee suspension logic and validate registration thresholds without interacting with actual governmental entities, it is necessary to deploy a local, isolated simulator called the Fake Governmental Identity SOAP Platform. This service emulates the behavior of a highly loaded legacy system utilizing the SOAP/XML protocol over HTTP on port :8000.
Step-by-Step Instructions
- Creating the Environment Configuration: Prepare a
docker-compose.ymlfile defining two distinct services: the Go simulator application and the PostgreSQL 15 database management system. - Ensuring Data Persistence: Configure Docker Volumes for the PostgreSQL container to maintain mock database records seamlessly across container restarts.
- Orchestrating the Launch sequence: Ensure that the Go backend application starts strictly after the PostgreSQL instance is completely ready to accept network connections (utilize
wait-for-itscripts or thedepends_ondirective paired with aservice_healthycondition). - Verifying Operational Status: Build and execute the stack using the
docker compose up --buildcommand. Verify the accessibility of the local entrypoint athttp://localhost:8000/.