Skip to content

Commit

Permalink
use container host rather than hardcoded localhost (#2880)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey authored Jun 1, 2024
1 parent db08be5 commit 8b8926c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public RelationalDatabaseConnection getConnection()
this.setup();
}
StaticDatasourceSpecification postgresDatasourceSpecification = new StaticDatasourceSpecification();
postgresDatasourceSpecification.host = "localhost";
postgresDatasourceSpecification.host = this.postgreSQLContainer.getHost();
postgresDatasourceSpecification.port = this.postgreSQLContainer.getMappedPort(PostgreSQLContainer.POSTGRESQL_PORT);
postgresDatasourceSpecification.databaseName = "test";

Expand Down

0 comments on commit 8b8926c

Please sign in to comment.