File tree 3 files changed +32
-9
lines changed
3 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,11 @@ services:
38
38
container_name : cdc-kafka
39
39
image : debezium/kafka:1.6
40
40
ports :
41
- - 9094:9094
41
+ - 9092:9092
42
42
environment :
43
43
ZOOKEEPER_CONNECT : zookeeper:2181
44
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
45
- KAFKA_LISTENERS : INSIDE://:9092,OUTSIDE://127.0.0.1:9094
46
- KAFKA_ADVERTISED_LISTENERS : INSIDE://:9092,OUTSIDE://127.0.0.1:9094
47
- KAFKA_INTER_BROKER_LISTENER_NAME : INSIDE
44
+ ADVERTISED_LISTENER :
45
+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://host.docker.internal:9092
48
46
depends_on :
49
47
- zookeeper
50
48
kafka-connect :
Original file line number Diff line number Diff line change 1
- using Com . Hus . Cdc ;
2
- using Confluent . Kafka ;
1
+ using Com . Hus . Cdc ;
2
+ using Confluent . Kafka ;
3
3
using LiteDB ;
4
- using Microsoft . Extensions . Configuration ;
4
+ using Microsoft . Extensions . Configuration ;
5
5
using Microsoft . Extensions . Hosting ;
6
6
using System ;
7
7
using System . Threading ;
@@ -18,7 +18,7 @@ public QuestionConsumerService()
18
18
{
19
19
var consumerConfig = new ConsumerConfig
20
20
{
21
- BootstrapServers = "localhost:9094 " ,
21
+ BootstrapServers = "host.docker.internal:9092 " ,
22
22
GroupId = "hus-dotnet-consumer" ,
23
23
AutoOffsetReset = AutoOffsetReset . Earliest
24
24
} ;
Original file line number Diff line number Diff line change
1
+
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio Version 16
4
+ VisualStudioVersion = 16.0.31613.86
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project ("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}" ) = "netcore" , "netcore.csproj" , "{2A39F4EC-7286-4080-BE76-57C26C42258C}"
7
+ EndProject
8
+ Global
9
+ GlobalSection (SolutionConfigurationPlatforms ) = preSolution
10
+ Debug| Any CPU = Debug| Any CPU
11
+ Release| Any CPU = Release| Any CPU
12
+ EndGlobalSection
13
+ GlobalSection (ProjectConfigurationPlatforms ) = postSolution
14
+ {2A39F4EC-7286-4080-BE76-57C26C42258C} .Debug| Any CPU .ActiveCfg = Debug| Any CPU
15
+ {2A39F4EC-7286-4080-BE76-57C26C42258C} .Debug| Any CPU .Build .0 = Debug| Any CPU
16
+ {2A39F4EC-7286-4080-BE76-57C26C42258C} .Release| Any CPU .ActiveCfg = Release| Any CPU
17
+ {2A39F4EC-7286-4080-BE76-57C26C42258C} .Release| Any CPU .Build .0 = Release| Any CPU
18
+ EndGlobalSection
19
+ GlobalSection (SolutionProperties ) = preSolution
20
+ HideSolutionNode = FALSE
21
+ EndGlobalSection
22
+ GlobalSection (ExtensibilityGlobals ) = postSolution
23
+ SolutionGuid = {6520A07C-2F91-4153-B364-53342C21307A}
24
+ EndGlobalSection
25
+ EndGlobal
You can’t perform that action at this time.
0 commit comments