#Spring & Kafka error with DNS resolution in docker-container in bridge network

4 messages · Page 1 of 1 (latest)

analog lichen
#

Hello everyone !

After looking everywhere for my issue I turn to you !

I have a microservice structured project using Spring with for the moment two apps one called BackedFlow( This is the main app it produces kafka messages) and BackedMailer(That consume the messages produced)

The issue lies in my deployment, I have a docker-compose stack with for the BackedFlow app an env variable called (see the linked gist with the docker-compose.yml) when i specify kafka:29092 i get this error : Couldn't resolve server kakfa:29092 from bootstrap.servers as DNS resolution failed for kakfa

Pretty odd error knowing that kafka itself can resolve the DNS and set the correct settings and I ssh into the container and when pinging kafka i get a DNS resolution :/

Has anyone ever encounter that if yes can you provide me with some clues ?

thanks a lot in advance

https://gist.github.com/nil-malh/d55aa899d21a098d430acec7b6cf8be9

Gist

docker-compose.yml. GitHub Gist: instantly share code, notes, and snippets.

modern valeBOT
#

This post has been reserved for your question.

Hey @analog lichen! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

modern valeBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.