Open mahima12agarwal opened 7 years ago
Seems that u´re using another project - not that one here (cxf-spring-cloud-netflix-docker)... So it´s not really related question ;)
But nevertheless: This registration process to Eureka is mostly done through setting the right config properties to your application.properties / application.yml file in your apps. Do you have a GitHub repo with your applications ready? You could also have a look into the projects in this repo here to get inspired. The critical props look like this:
eureka:
client:
serviceUrl:
defaultZone: http://${registry.host:localhost}:${registry.port:8761}/eureka/
Hi , In my docker-compose file if I don't provide a host port mapping for my microservice, it is unable to register in eureka correctly as it gets registered with the server.port , but the host port is assigned randomly.
this is my docker-compose file
version: '3' services: eureka: restart: always tty: true image: eureka_server:1.0 working_dir: /app volumes:
lip
products: restart: always image: product-service-ms:1.0 tty: true working_dir: /app volumes:
lip
zuul-server: restart: always image: zuul-proxy-server:1.0 tty: true working_dir: /app volumes:
lip
zipkin: restart: always image: zipkin-server:1.0 tty: true working_dir: /app volumes:
lip
adminconsole: restart: always image: spring-admin-console:1.0 tty: true working_dir: /app volumes:
networks: lip: driver: bridge
Please help with this issue.