Skip to content

Commit

Permalink
Azure MySQL Database
Browse files Browse the repository at this point in the history
  • Loading branch information
msftsean committed May 14, 2024
1 parent 6b6564a commit 55d706c
Showing 1 changed file with 61 additions and 10 deletions.
71 changes: 61 additions & 10 deletions config/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,66 @@
# 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:
url: jdbc:mysql:https://mysql--20240510.mysql.database.azure.com:3306/petclinic?useSSL=true
username: myadmin
password: Thisis1mysqlpassword
sql:
init:
schema-locations: classpath*:db/mysql/schema.sql
data-locations: classpath*:db/mysql/data.sql
mode: ALWAYS
sleuth:
sampler:
probability: 1.0
cloud:
config:
server:
native:
search-locations: classpath:/shared
profiles:
active: native
security:
user:
password: ${CONFIG_SERVICE_PASSWORD}
# 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

server:
port: 8888
# 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
eureka:
client:
serviceUrl:
defaultZone: http:https://discovery-server:8761/eureka/
instance:
preferIpAddress: true

0 comments on commit 55d706c

Please sign in to comment.