Skip to content

Commit

Permalink
Change settings for eureka
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagorym committed Dec 5, 2023
1 parent d440537 commit 3427058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ spring.jpa.hibernate.ddl-auto=validate

eureka.client.serviceUrl.defaultZone=${SPRING_DISCOVERY_DEFAULT_ZONE:http://localhost:8181/eureka}
spring.application.name=user-service
server.port=0
server.port=8080
eureka.instance.prefer-ip-address=true
eureka.instance.ip-address=${HOST}

eureka.instance.instanceId=${spring.cloud.client.hostname}:${spring.application.name}:${spring.application.instance_id:${random.value}}

Expand Down

0 comments on commit 3427058

Please sign in to comment.