diff --git a/market-maker/src/core/healthcheck.ts b/market-maker/src/core/healthcheck.ts index bb731bb..6ea325e 100644 --- a/market-maker/src/core/healthcheck.ts +++ b/market-maker/src/core/healthcheck.ts @@ -98,7 +98,7 @@ export class HealthCheck { const logger = this.opts.logger; const port = this.opts.port; - this.server.listen(port, () => { + this.server.listen(port, "0.0.0.0", () => { logger.info( { human: `http://localhost:${port}/health`, diff --git a/market-maker/src/core/portfolioHealth.ts b/market-maker/src/core/portfolioHealth.ts index 2c05bae..9ff9af1 100644 --- a/market-maker/src/core/portfolioHealth.ts +++ b/market-maker/src/core/portfolioHealth.ts @@ -73,7 +73,9 @@ export class PortfolioHealthCheck { } }); const { logger, port } = this.opts; - this.server.listen(port, () => { + // Bind IPv4 explicitly. listen(port) alone binds :: on current + // node:24-alpine, and the ALB health check to the task IPv4 times out. + this.server.listen(port, "0.0.0.0", () => { logger.info( { human: `http://localhost:${port}/health`,