mysterious-belgium-44686
06/09/2021, 12:45 AMkafkaContainer = docker.Container("kafka-container",
image=kafkaImage.name,
restart="on-failure",
networks_advanced=[{ 'name': network.name }],
start=True,
envs=[
"KAFKA_BROKER_ID=1",
"KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181",
"KAFKA_ADVERTISED_LISTENERS=<PLAINTEXT://kafka:29092>,PLAINTEXT_<HOST://localhost:9092>",
"KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT",
"KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT",
"KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1"
],
ports=[{
'internal': 9092,
}],
opts=pulumi.ResourceOptions(depends_on=[zkContainer])
)
topic = kafka.Topic("topic",
name="sample-topic",
replication_factor=1,
partitions=4,
opts=pulumi.ResourceOptions(depends_on=[kafkaContainer])
)
steep-toddler-94095
06/09/2021, 12:56 AMhealthcheck
property to your container will workmysterious-belgium-44686
06/09/2021, 1:05 AMsparse-tomato-5980
06/09/2021, 3:09 AMmysterious-belgium-44686
06/09/2021, 3:09 AMsparse-tomato-5980
06/09/2021, 3:10 AMdocker-compose.yml
mysterious-belgium-44686
06/09/2021, 3:11 AMsparse-tomato-5980
06/09/2021, 3:11 AMmysterious-belgium-44686
06/09/2021, 3:13 AMprehistoric-nail-50687
06/09/2021, 5:56 AMYeah what Iām doing is testing replacing docker-compose with Pulumi@sparse-tomato-5980 I never thought about this, what do you think would be the advantages in a local setup? Donāt you think it complicates things for ānormal usersā?
mysterious-belgium-44686
06/09/2021, 1:06 PMprehistoric-nail-50687
06/09/2021, 2:02 PM