Skip to content
Snippets Groups Projects
Commit 2456f842 authored by kkkaay__'s avatar kkkaay__
Browse files

git push

parents
Branches master
No related tags found
No related merge requests found
LICENSE 0 → 100755
Copyright 2002-2017 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
# spring-petclinic-microservices-config
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
Configuration repository for distributed Spring Petclinic application
server:
port: 9090
---
spring:
profiles: docker
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
\ No newline at end of file
zuul:
prefix: /api
ignoredServices: '*'
routes:
vets-service: /vet/**
visits-service: /visit/**
customers-service: /customer/**
api-gateway: /gateway/**
server:
port: 8080
compression:
enabled: true
mime-types: application/json,text/css,application/javascript
min-response-size: 2048
# Internationalization
spring.messages.basename: messages/messages
---
spring:
profiles: docker
zipkin:
baseUrl: http://tracing-server:9411
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
\ No newline at end of file
# COMMON APPLICATION PROPERTIES
server:
# start services on random port by default
port: 0
# The stop processing uses a timeout which provides a grace period during which existing requests will be allowed to complete but no new requests will be permitted
shutdown: graceful
# embedded database init, supports mysql too trough the 'mysql' spring profile
spring:
datasource:
schema: classpath*:db/hsqldb/schema.sql
data: classpath*:db/hsqldb/data.sql
sleuth:
sampler:
probability: 1.0
cloud:
config:
# Allow the microservices to override the remote properties with their own System properties or config file
allow-override: true
# Override configuration with any local property source
override-none: true
jpa:
open-in-view: false
hibernate:
ddl-auto: none
# Spring Boot 1.5 makes actuator secure by default
management.security.enabled: false
# Enable all Actuators and not only the two available by default /health and /info starting Spring Boot 2.0
management.endpoints.web.exposure.include: "*"
# Temporary hack required by the Spring Boot 2 / Spring Cloud Finchley branch
# Waiting issue https://github.com/spring-projects/spring-boot/issues/13042
spring.cloud.refresh.refreshable: false
# Logging
logging.level.org.springframework: INFO
# Metrics
management:
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
endpoints:
web:
exposure:
include: '*'
metrics:
export:
prometheus:
enabled: true
---
spring:
profiles: mysql
datasource:
schema: classpath*:db/mysql/schema.sql
data: classpath*:db/mysql/data.sql
url: jdbc:mysql://petclinic_micro_db:3306/petclinic?useSSL=false
username: root
password: petclinic
initialization-mode: ALWAYS
spring:
profiles: default
eureka:
instance:
# enable to register multiple app instances with a random server port
instance-id: ${spring.application.name}:${random.uuid}
---
spring:
profiles: docker
zipkin:
baseUrl: http://tracing-server:9411
server:
port: 8081
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
\ No newline at end of file
server:
port: 8761
eureka:
instance:
hostname: localhost
# standalone mode
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
server:
port: 7979
---
spring:
profiles: docker
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
\ No newline at end of file
server:
port: 9411
---
spring:
profiles: default
eureka:
instance:
# enable to register multiple app instances with a random server port
instance-id: ${spring.application.name}:${random.uuid}
---
spring:
profiles: docker
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
\ No newline at end of file
vets:
cache:
ttl: 60
heap-size: 100
---
spring:
profiles: default
eureka:
instance:
# enable to register multiple app instances with a random server port
instance-id: ${spring.application.name}:${random.uuid}
---
spring:
profiles: docker
zipkin:
baseUrl: http://tracing-server:9411
server:
port: 8083
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
\ No newline at end of file
spring:
profiles: default
eureka:
instance:
# enable to register multiple app instances with a random server port
instance-id: ${spring.application.name}:${random.uuid}
---
spring:
profiles: docker
zipkin:
baseUrl: http://tracing-server:9411
server:
port: 8082
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment