Skip to content

Commit 380d502

Browse files
committed
Config server modify yml files for docker hub.
1 parent fb22b0a commit 380d502

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config-server/src/main/docker/app.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ services:
66
hostname: config-server
77
environment:
88
- _JAVA_OPTIONS=-Xmx512m -Xms256m
9+
- EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://service-registry:8761/eureka
910
ports:
1011
- 9296:9296

config-server/src/main/resources/application.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ spring:
1010
# git:
1111
# uri: https://github.com/cevheri/microservices-config-server
1212
# clone-on-start: true
13+
1314
eureka:
1415
client:
1516
register-with-eureka: true
1617
fetch-registry: true
1718
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/
2022
instance:
2123
hostname: service-registry

0 commit comments

Comments
 (0)