Hosting Spring-cloud-config server as a micro service in docker : How to host a spring cloud config server registered as Eureka Client in docker containers ?

My spring boot micro services architecture includes the below components,

1. eureka-server (Eureka as Service Registry)
2. config-server (registered as Eureka client)
3. Business Logic App (registered as Eureka client) 

These spring boot applications are working fine in my windows local machine.  The same needs to be hosted in docker containers.

Config server is not getting registered with Eureka server while running in docker container.

I have tried including the below key-value in my config-server properties as suggested in many blogs,

trail 1: eureka.client.service-url.defaultZone=http://localhost:8761/eureka/

trail 2: eureka.client.service-url.defaultZone=http://eureka-server:8761/eureka/

Both these suggestions doesn't work.

**I would like to get a working example to host the config server registered with Eureka in docker containers.**