File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ services:
6
6
hostname : config-server
7
7
environment :
8
8
- _JAVA_OPTIONS=-Xmx512m -Xms256m
9
+ - EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://service-registry:8761/eureka
9
10
ports :
10
11
- 9296:9296
Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ spring:
10
10
# git:
11
11
# uri: https://github.com/cevheri/microservices-config-server
12
12
# clone-on-start: true
13
+
13
14
eureka :
14
15
client :
15
16
register-with-eureka : true
16
17
fetch-registry : true
17
18
service-url :
18
- defaultZone : http://localhost:8761/eureka/
19
- # defaultZone: http://service-registry:8761/eureka/
19
+ # for local run
20
+ # defaultZone: http://localhost:8761/eureka/
21
+ defaultZone : http://service-registry:8761/eureka/
20
22
instance :
21
23
hostname : service-registry
You can’t perform that action at this time.
0 commit comments