Change in docker compose to deploy all containers

This commit is contained in:
Diego Rubio
2020-11-26 19:18:08 +01:00
parent 416f0aea7f
commit e1c892baa3
4 changed files with 35 additions and 31 deletions

View File

@@ -1,19 +0,0 @@
package es.dbiosag.command.infrasturcture.configuration;
import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.config.TopicBuilder;
@Configuration
public class KafkaTopicConfig {
@Value(value = "${message.topic.createPhone}")
private String topicName;
@Bean
public NewTopic topicProducePhone() {
return TopicBuilder.name(topicName).build();
}
}

View File

@@ -13,8 +13,9 @@ spring:
enabled: true
kafka:
bootstrap-servers: localhost:9092
consumer.group-id: phone-producers
bootstrap-servers: kafka1:9092
consumer:
group-id: test-consumer-group
message:
topic:
createPhone: create-phone