ソースを参照

高可用配置中心

gaodm 6 年 前
コミット
a7bd5dab5a
36 ファイル変更191 行追加21 行削除
  1. 4 0
      admin-service/pom.xml
  2. 2 0
      admin-service/src/main/java/com/diagbot/AdminServiceApplication.java
  3. 9 1
      admin-service/src/main/resources/bootstrap.yml
  4. 5 0
      bi-service/pom.xml
  5. 2 0
      bi-service/src/main/java/com/diagbot/BiServiceApplication.java
  6. 9 1
      bi-service/src/main/resources/bootstrap.yml
  7. 8 0
      config-server/src/main/resources/application.yml
  8. 8 0
      config-server/src/main/resources/shared/admin-service-dev.yml
  9. 8 0
      config-server/src/main/resources/shared/admin-service-local.yml
  10. 8 0
      config-server/src/main/resources/shared/admin-service-pro.yml
  11. 2 2
      config-server/src/main/resources/shared/application-dev.yml
  12. 2 2
      config-server/src/main/resources/shared/application-local.yml
  13. 5 0
      diagbotman-service/pom.xml
  14. 2 0
      diagbotman-service/src/main/java/com/diagbot/DiagbotmanServiceApplication.java
  15. 10 2
      diagbotman-service/src/main/resources/bootstrap.yml
  16. 6 6
      docker-compose.yml
  17. 5 0
      feedback-service/pom.xml
  18. 2 0
      feedback-service/src/main/java/com/diagbot/FeedbackServiceApplication.java
  19. 9 1
      feedback-service/src/main/resources/bootstrap.yml
  20. 5 0
      gateway-service/pom.xml
  21. 2 0
      gateway-service/src/main/java/com/diagbot/GatewayServiceApplication.java
  22. 9 2
      gateway-service/src/main/resources/bootstrap.yml
  23. 5 0
      knowledge-service/pom.xml
  24. 2 0
      knowledge-service/src/main/java/com/diagbot/KnowledgeServiceApplication.java
  25. 9 1
      knowledge-service/src/main/resources/bootstrap.yml
  26. 5 0
      log-service/pom.xml
  27. 2 0
      log-service/src/main/java/com/diagbot/LogServiceApplication.java
  28. 9 1
      log-service/src/main/resources/bootstrap.yml
  29. 4 0
      monitor-service/pom.xml
  30. 2 0
      monitor-service/src/main/java/com/diagbot/MonitorServiceApplication.java
  31. 4 0
      uaa-service/pom.xml
  32. 2 0
      uaa-service/src/main/java/com/diagbot/UaaServiceApplication.java
  33. 9 1
      uaa-service/src/main/resources/bootstrap.yml
  34. 5 0
      user-service/pom.xml
  35. 2 0
      user-service/src/main/java/com/diagbot/UserServiceApplication.java
  36. 9 1
      user-service/src/main/resources/bootstrap.yml

+ 4 - 0
admin-service/pom.xml

@@ -69,6 +69,10 @@
             <groupId>org.jolokia</groupId>
             <artifactId>jolokia-core</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
     </dependencies>
 
     <build>

+ 2 - 0
admin-service/src/main/java/com/diagbot/AdminServiceApplication.java

@@ -6,6 +6,7 @@ import de.codecentric.boot.admin.server.config.EnableAdminServer;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
 import org.springframework.cloud.netflix.turbine.EnableTurbine;
@@ -27,6 +28,7 @@ import org.springframework.security.web.authentication.SavedRequestAwareAuthenti
 @EnableAdminServer
 @Configuration
 @EnableAutoConfiguration
+@RefreshScope
 public class AdminServiceApplication {
 
     public static void main(String[] args) {

+ 9 - 1
admin-service/src/main/resources/bootstrap.yml

@@ -3,11 +3,19 @@ spring:
     name: admin-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost
 
 

+ 5 - 0
bi-service/pom.xml

@@ -113,6 +113,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!-- mybatis-plus begin -->
         <dependency>
             <groupId>com.baomidou</groupId>

+ 2 - 0
bi-service/src/main/java/com/diagbot/BiServiceApplication.java

@@ -3,6 +3,7 @@ package com.diagbot;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
@@ -19,6 +20,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 @EnableHystrixDashboard
 @EnableHystrix
 @EnableCircuitBreaker
+@RefreshScope
 public class BiServiceApplication {
 
     public static void main(String[] args) {

+ 9 - 1
bi-service/src/main/resources/bootstrap.yml

@@ -3,9 +3,17 @@ spring:
     name: bi-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost

+ 8 - 0
config-server/src/main/resources/application.yml

@@ -21,6 +21,14 @@ spring:
      active: native
   application:
     name: config-server
+  #mq
+  rabbitmq:
+    host: localhost
+    port: 5672
+    username: guest
+    password: guest
+    publisher-confirms: true
+    virtual-host: /
 
 # port
 server:

+ 8 - 0
config-server/src/main/resources/shared/admin-service-dev.yml

@@ -22,6 +22,14 @@ spring:
 #    user:
 #      name: ${security2.user.name}
 #      password: ${security2.user.password}
+  #mq
+  rabbitmq:
+    host: 192.168.2.236
+    port: 5672
+    username: lantone
+    password: lantone
+    publisher-confirms: true
+    virtual-host: /
 
 eureka:
   instance:

+ 8 - 0
config-server/src/main/resources/shared/admin-service-local.yml

@@ -22,6 +22,14 @@ spring:
 #    user:
 #      name: ${security2.user.name}
 #      password: ${security2.user.password}
+  #mq
+  rabbitmq:
+    host: localhost
+    port: 5672
+    username: guest
+    password: guest
+    publisher-confirms: true
+    virtual-host: /
 
 eureka:
   instance:

+ 8 - 0
config-server/src/main/resources/shared/admin-service-pro.yml

@@ -22,6 +22,14 @@ spring:
     user:
       name: ${security2.user.name}
       password: ${security2.user.password}
+  #mq
+  rabbitmq:
+    host: 192.168.2.236
+    port: 5672
+    username: lantone
+    password: lantone
+    publisher-confirms: true
+    virtual-host: /
 
 eureka:
   instance:

+ 2 - 2
config-server/src/main/resources/shared/application-dev.yml

@@ -18,8 +18,8 @@ eureka:
     health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
   client:
     registryFetchIntervalSeconds: 5
-    serviceUrl:
-      defaultZone: http://eureka1:8761/eureka/
+#    serviceUrl:
+#      defaultZone: http://eureka1:8761/eureka/
 
 #endpoints:
 #  health:

+ 2 - 2
config-server/src/main/resources/shared/application-local.yml

@@ -18,8 +18,8 @@ eureka:
     health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
   client:
     registryFetchIntervalSeconds: 5
-    serviceUrl:
-      defaultZone: http://localhost:8761/eureka/
+#    serviceUrl:
+#      defaultZone: http://localhost:8761/eureka/
 
 #endpoints:
 #  health:

+ 5 - 0
diagbotman-service/pom.xml

@@ -113,6 +113,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!-- mybatis-plus begin -->
         <dependency>
             <groupId>com.baomidou</groupId>

+ 2 - 0
diagbotman-service/src/main/java/com/diagbot/DiagbotmanServiceApplication.java

@@ -3,6 +3,7 @@ package com.diagbot;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
@@ -19,6 +20,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 @EnableHystrixDashboard
 @EnableHystrix
 @EnableCircuitBreaker
+@RefreshScope
 public class DiagbotmanServiceApplication {
 
     public static void main(String[] args) {

+ 10 - 2
diagbotman-service/src/main/resources/bootstrap.yml

@@ -3,9 +3,17 @@ spring:
     name: diagbotman-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
-myuri: localhost
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
+myuri: localhost

+ 6 - 6
docker-compose.yml

@@ -37,7 +37,7 @@ services:
 #      - "data/diagbotcloud/logs:/logs"
     environment:
       - spring.profiles.active=dev
-      - myuri=config1
+      - myuri=eureka1
     restart: always
   user-service:
     image: 192.168.2.236:5000/diagbotcloud/user-service:0.0.1-SNAPSHOT
@@ -49,7 +49,7 @@ services:
 #      - "data/diagbotcloud/logs:/logs"
     environment:
       - spring.profiles.active=dev
-      - myuri=config1
+      - myuri=eureka1
     restart: always
   log-service:
     image: 192.168.2.236:5000/diagbotcloud/log-service:0.0.1-SNAPSHOT
@@ -61,7 +61,7 @@ services:
 #      - "data/diagbotcloud/logs:/logs"
     environment:
       - spring.profiles.active=dev
-      - myuri=config1
+      - myuri=eureka1
     restart: always
   monitor-service:
     image: 192.168.2.236:5000/diagbotcloud/monitor-service:0.0.1-SNAPSHOT
@@ -77,7 +77,7 @@ services:
       - "8766:8766"
     environment:
       - spring.profiles.active=dev
-      - myuri=config1
+      - myuri=eureka1
     restart: always
   admin-service:
     image: 192.168.2.236:5000/diagbotcloud/admin-service:0.0.1-SNAPSHOT
@@ -91,7 +91,7 @@ services:
       - "9998:9998"
     environment:
       - spring.profiles.active=dev
-      - myuri=config1
+      - myuri=eureka1
     restart: always
   gateway-service:
     image: 192.168.2.236:5000/diagbotcloud/gateway-service:0.0.1-SNAPSHOT
@@ -106,5 +106,5 @@ services:
       - "5050:5050"
     environment:
       - spring.profiles.active=dev
-      - myuri=config1
+      - myuri=eureka1
     restart: always

+ 5 - 0
feedback-service/pom.xml

@@ -113,6 +113,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!-- mybatis-plus begin -->
         <dependency>
             <groupId>com.baomidou</groupId>

+ 2 - 0
feedback-service/src/main/java/com/diagbot/FeedbackServiceApplication.java

@@ -3,6 +3,7 @@ package com.diagbot;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
@@ -19,6 +20,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 @EnableHystrixDashboard
 @EnableHystrix
 @EnableCircuitBreaker
+@RefreshScope
 public class FeedbackServiceApplication {
 
     public static void main(String[] args) {

+ 9 - 1
feedback-service/src/main/resources/bootstrap.yml

@@ -3,9 +3,17 @@ spring:
     name: feedback-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost

+ 5 - 0
gateway-service/pom.xml

@@ -42,6 +42,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!--swagger-->
         <dependency>
             <groupId>io.springfox</groupId>

+ 2 - 0
gateway-service/src/main/java/com/diagbot/GatewayServiceApplication.java

@@ -2,6 +2,7 @@ package com.diagbot;
 
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
 
@@ -13,6 +14,7 @@ import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
 @SpringBootApplication
 @EnableZuulProxy
 @EnableEurekaClient
+@RefreshScope
 public class GatewayServiceApplication {
 
     public static void main(String[] args) {

+ 9 - 2
gateway-service/src/main/resources/bootstrap.yml

@@ -3,12 +3,19 @@ spring:
     name: gateway-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
-myuri: localhost
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
 
+myuri: localhost
 
 

+ 5 - 0
knowledge-service/pom.xml

@@ -113,6 +113,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!-- mybatis-plus begin -->
         <dependency>
             <groupId>com.baomidou</groupId>

+ 2 - 0
knowledge-service/src/main/java/com/diagbot/KnowledgeServiceApplication.java

@@ -3,6 +3,7 @@ package com.diagbot;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
@@ -14,6 +15,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 @EnableHystrixDashboard
 @EnableHystrix
 @EnableCircuitBreaker
+@RefreshScope
 public class KnowledgeServiceApplication {
 
     public static void main(String[] args) {

+ 9 - 1
knowledge-service/src/main/resources/bootstrap.yml

@@ -3,9 +3,17 @@ spring:
     name: knowledge-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost

+ 5 - 0
log-service/pom.xml

@@ -113,6 +113,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!-- mybatis-plus begin -->
         <dependency>
             <groupId>com.baomidou</groupId>

+ 2 - 0
log-service/src/main/java/com/diagbot/LogServiceApplication.java

@@ -3,6 +3,7 @@ package com.diagbot;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
@@ -19,6 +20,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 @EnableHystrix
 @EnableHystrixDashboard
 @EnableCircuitBreaker
+@RefreshScope
 public class LogServiceApplication {
 
 	public static void main(String[] args) {

+ 9 - 1
log-service/src/main/resources/bootstrap.yml

@@ -3,9 +3,17 @@ spring:
     name: logger-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost

+ 4 - 0
monitor-service/pom.xml

@@ -51,6 +51,10 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
     </dependencies>
 
     <build>

+ 2 - 0
monitor-service/src/main/java/com/diagbot/MonitorServiceApplication.java

@@ -3,6 +3,7 @@ package com.diagbot;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
 import org.springframework.cloud.netflix.turbine.EnableTurbine;
@@ -12,6 +13,7 @@ import org.springframework.cloud.netflix.turbine.EnableTurbine;
 @EnableHystrixDashboard
 @EnableHystrix
 @EnableCircuitBreaker
+@RefreshScope
 public class MonitorServiceApplication {
 
     public static void main(String[] args) {

+ 4 - 0
uaa-service/pom.xml

@@ -65,6 +65,10 @@
             <groupId>net.logstash.logback</groupId>
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
 
         <!-- mybatis-plus begin -->
         <dependency>

+ 2 - 0
uaa-service/src/main/java/com/diagbot/UaaServiceApplication.java

@@ -2,10 +2,12 @@ package com.diagbot;
 
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 
 @SpringBootApplication
 @EnableEurekaClient
+@RefreshScope
 public class UaaServiceApplication {
 
 	public static void main(String[] args) {

+ 9 - 1
uaa-service/src/main/resources/bootstrap.yml

@@ -3,11 +3,19 @@ spring:
     name: uaa-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost
 
 management:

+ 5 - 0
user-service/pom.xml

@@ -113,6 +113,11 @@
             <artifactId>logstash-logback-encoder</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
+        </dependency>
+
         <!-- mybatis-plus begin -->
         <dependency>
             <groupId>com.baomidou</groupId>

+ 2 - 0
user-service/src/main/java/com/diagbot/UserServiceApplication.java

@@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
 import org.springframework.cloud.netflix.hystrix.EnableHystrix;
 import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
@@ -25,6 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
 @EnableHystrixDashboard
 @EnableHystrix
 @EnableCircuitBreaker
+@RefreshScope
 public class UserServiceApplication {
 
 	public static void main(String[] args) {

+ 9 - 1
user-service/src/main/resources/bootstrap.yml

@@ -3,9 +3,17 @@ spring:
     name: user-service
   cloud:
     config:
-      uri: http://${myuri}:8769
+#      uri: http://${myuri}:8769
       fail-fast: true
+      discovery:
+        enabled: true
+        serviceId: config-server
   profiles:
       active: local
 
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://${myuri}:8761/eureka/
+
 myuri: localhost