I would like to define the container hostname. This is available in the .NET and Java TestContainers frameworks, but not in the NodeJS framework
I understand this is a duplicate of #865 , however on reading the discussion there it is not clear to me what the rationale is for closing that issue :(
My specific use case is that I would like to set up a PostgreSQL container for integration testing in a TypeScript backend. Currently the container.getHost() method resolves to localhost and I am not clear how to change this for the PostgreSQL container. This is especially an issue when I need to orchestrate multiple TestContainers for the E2E tests, and the TypeScript backend app itself is using the localhost:... namespace already.
I would like to define the container hostname. This is available in the .NET and Java TestContainers frameworks, but not in the NodeJS framework
I understand this is a duplicate of #865 , however on reading the discussion there it is not clear to me what the rationale is for closing that issue :(
My specific use case is that I would like to set up a PostgreSQL container for integration testing in a TypeScript backend. Currently the
container.getHost()method resolves tolocalhostand I am not clear how to change this for the PostgreSQL container. This is especially an issue when I need to orchestrate multiple TestContainers for the E2E tests, and the TypeScript backend app itself is using thelocalhost:...namespace already.