Skip to content

Commit

Permalink
I'm using docker-compose locally, with an extra advertised.listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Nov 28, 2017
1 parent 362b6c5 commit eb2920d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

public class IntegrationTestConfigLocalhost extends AbstractModule {

public static final int KAFKA_LISTENER_PORT = 9094;

@Override
protected void configure() {
bind(String.class).annotatedWith(Names.named("config:bootstrap")).toInstance("localhost:9092");
bind(String.class).annotatedWith(Names.named("config:bootstrap")).toInstance("localhost:" + KAFKA_LISTENER_PORT);

bind(String.class).annotatedWith(Names.named("config:adminTopic")).toInstance("_topic_declarations");

Expand Down

0 comments on commit eb2920d

Please sign in to comment.