Skip to content

Neo4j and Kafka containers seem to be unable to communicate with each other #6223

Discussion options

You must be logged in to vote

@jameswylyreasint can you share a minimal sample reproducer, please? I have

@Test
void test() {
    Network network = Network.newNetwork();
    try (KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:6.2.1"))
            .withNetwork(network)
            .withNetworkAliases("kafka");
         Neo4jContainer<?> neo4j = new Neo4jContainer<>(DockerImageName.parse("neo4j:4.4.11-enterprise"))
                 .withNetwork(network)
                 .withEnv("NEO4J_kafka_bootstrap_servers", "kafka:9093")
                 .withEnterpriseEdition()
                 .withLabsPlugins(Neo4jLabsPlugin.STREAMS)
                 .dependsOn(kafka)) {
         Startables.d…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@eddumelendez
Comment options

@jameswylyreasint
Comment options

@jameswylyreasint
Comment options

@eddumelendez
Comment options

@jameswylyreasint
Comment options

Answer selected by jameswylyreasint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants