.NET Core 3, Docker and Eureka Service Discovery setup

Viewed 16

How to setup .NET Core Web API running from a Docker container to work with a Service Discovery with Eureka?

This is my current configuration that is not working:

Startup.cs

enter image description here

appsettings.json

  • Option 1: Using localhost as hostname

enter image description here

  • Option 2: Using host docker internal

enter image description here

Also in eureka.client.serviceUrl I've used those other options:

  • http://localhost:8761/eureka/
  • http://localhost:8761/eureka
  • http://localhost:8761/
  • http://localhost:8761

At the final, there is nothing registered in Eureka:

enter image description here

This is my first time working with something like this, so I followed all the steps in this tutorial

0 Answers
Related