Skip to content

Commit 702884c

Browse files
committed
Config server and Eureka Service Registry modify yml files for docker hub.
1 parent 4bf7345 commit 702884c

File tree

10 files changed

+18
-14
lines changed

10 files changed

+18
-14
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ $ docker-compose -f docker-compose/app.yml up -d
8888
$ docker-compose -f docker-compose/app.yml down
8989
```
9090

91-
References:
91+
### Screenshots
92+
93+
![All Microservices UP](files/pictures/microservices-allservice-on-eureka.png)
94+
95+
### References:
9296

9397
- https://spring.io/microservices
9498
- https://microservices.io/patterns/microservices.html

department-service/src/main/resources/application.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ spring:
22
application:
33
name: department-service
44
zipkin:
5-
base-url: http://127.0.0.1:9411/
5+
base-url: http://zipkin:9411/
66

77
server:
88
port: 9001
@@ -12,8 +12,8 @@ eureka:
1212
register-with-eureka: true
1313
fetch-registry: true
1414
service-url:
15-
defaultZone: http://localhost:8761/eureka/
16-
#defaultZone: http://service-registry:8761/eureka/
15+
#defaultZone: http://localhost:8761/eureka/
16+
defaultZone: http://service-registry:8761/eureka/
1717
instance:
1818
hostname: service-registry
1919

department-service/src/main/resources/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ spring:
22
cloud:
33
config:
44
enabled: true
5-
uri: http://localhost:9296
5+
uri: http://config-server:9296
126 KB
Loading

hystrix-dashboard/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ eureka:
1414
register-with-eureka: true
1515
fetch-registry: true
1616
service-url:
17-
defaultZone: http://localhost:8761/eureka/
18-
#defaultZone: http://service-registry:8761/eureka/
17+
# defaultZone: http://localhost:8761/eureka/
18+
defaultZone: http://service-registry:8761/eureka/
1919
instance:
2020
hostname: service-registry

hystrix-dashboard/src/main/resources/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ spring:
22
cloud:
33
config:
44
enabled: true
5-
uri: http://localhost:9296
5+
uri: http://config-server:9296

person-service/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ eureka:
1212
register-with-eureka: true
1313
fetch-registry: true
1414
service-url:
15-
defaultZone: http://localhost:8761/eureka/
16-
#defaultZone: http://service-registry:8761/eureka/
15+
# defaultZone: http://localhost:8761/eureka/
16+
defaultZone: http://service-registry:8761/eureka/
1717
instance:
1818
hostname: service-registry

person-service/src/main/resources/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ spring:
22
cloud:
33
config:
44
enabled: true
5-
uri: http://localhost:9296
5+
uri: http://config-server:9296

task-service/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ eureka:
1212
register-with-eureka: true
1313
fetch-registry: true
1414
service-url:
15-
defaultZone: http://localhost:8761/eureka/
16-
#defaultZone: http://service-registry:8761/eureka/
15+
# defaultZone: http://localhost:8761/eureka/
16+
defaultZone: http://service-registry:8761/eureka/
1717
instance:
1818
hostname: service-registry

task-service/src/main/resources/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ spring:
22
cloud:
33
config:
44
enabled: true
5-
uri: http://localhost:9296
5+
uri: http://config-server:9296

0 commit comments

Comments
 (0)