Skip to content

Commit

Permalink
Fixing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kbastani committed May 25, 2015
1 parent 7bdc1b4 commit 140300d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api-gateway-microservice/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:7
FROM java:8
VOLUME /tmp
ADD api-gateway-microservice-0.1.0.jar app.jar
RUN bash -c 'touch /app.jar'
Expand Down
14 changes: 6 additions & 8 deletions api-gateway-microservice/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server:
port: 8762
port: 10000

endpoints:
restart:
Expand All @@ -11,11 +11,9 @@ endpoints:

eureka:
instance:
leaseRenewalIntervalInSeconds: 10
metadataMap:
instanceId: ${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${server.port}}}
hostname: gateway
client:
region: default
registryFetchIntervalSeconds: 5
availabilityZones:
default: ${APPLICATION_DOMAIN:${DOMAIN:defaultZone}}
registerWithEureka: true
fetchRegistry: false
serviceUrl:
defaultZone: http://discovery:8761/eureka/
2 changes: 1 addition & 1 deletion api-gateway-microservice/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ spring:
name: gateway
cloud:
config:
uri: http://localhost:8888/gateway/cloud
uri: http://configserver:8888
encrypt:
failOnError: false
2 changes: 1 addition & 1 deletion config-microservice/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server:

eureka:
instance:
hostname: config
hostname: configserver
client:
registerWithEureka: true
fetchRegistry: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
profiles:
active: cloud
active: docker
application:
name: recommendation
spring.cloud.config.discovery.enabled: "true"
Expand Down

0 comments on commit 140300d

Please sign in to comment.