feat: Maven multimodule scaffolding for Ordinis MDM service
- 10 модулей (domain, validation, events-api, outbox, rest-api, app, read-api, projection-writer, cuod-bundle, migrations) - Parent pom + BOM с Spring Boot 3.4.2, Spring Cloud 2024.0.0, Vault Config 4.2.0 - ordinis-app: Spring Boot main с Actuator/Prometheus/Logstash JSON encoder/OpenTelemetry/Cloud Config/Vault skeleton - ordinis-migrations: Liquibase changelogs (dictionary_definitions/records, audit_log, outbox_events, idempotency_keys, EXCLUSION CONSTRAINT через btree_gist) - Multi-stage Dockerfiles для app и migrations
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
spring:
|
||||
application:
|
||||
name: ordinis-app
|
||||
config:
|
||||
import:
|
||||
- "optional:configserver:${SPRING_CLOUD_CONFIG_URI:http://localhost:8888}"
|
||||
- "optional:vault://"
|
||||
cloud:
|
||||
vault:
|
||||
enabled: ${VAULT_ENABLED:false}
|
||||
uri: ${VAULT_URI:http://vault.config:8200}
|
||||
authentication: KUBERNETES
|
||||
kubernetes:
|
||||
role: ordinis-app
|
||||
service-account-token-file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||
kv:
|
||||
enabled: true
|
||||
backend: secret
|
||||
application-name: ordinis/cuod
|
||||
config:
|
||||
enabled: ${CONFIG_SERVER_ENABLED:false}
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
shutdown: graceful
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,prometheus,refresh,metrics,env
|
||||
base-path: /actuator
|
||||
endpoint:
|
||||
health:
|
||||
probes:
|
||||
enabled: true
|
||||
show-details: when-authorized
|
||||
group:
|
||||
liveness:
|
||||
include: livenessState
|
||||
readiness:
|
||||
include: readinessState,db,kafka
|
||||
prometheus:
|
||||
metrics:
|
||||
export:
|
||||
enabled: true
|
||||
metrics:
|
||||
tags:
|
||||
application: ${spring.application.name}
|
||||
environment: ${ENVIRONMENT:dev}
|
||||
|
||||
# Defaults; реальные значения подъедутся из Spring Cloud Config + Vault
|
||||
otel:
|
||||
exporter:
|
||||
otlp:
|
||||
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://tempo.monitoring:4317}
|
||||
protocol: grpc
|
||||
resource:
|
||||
attributes:
|
||||
service.name: ${spring.application.name}
|
||||
service.namespace: ordinis
|
||||
deployment.environment: ${ENVIRONMENT:dev}
|
||||
traces:
|
||||
sampler: parentbased_traceidratio
|
||||
sampler.arg: ${ORDINIS_TRACING_SAMPLING:0.1}
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: INFO
|
||||
cloud.nstart.terravault.ordinis: DEBUG
|
||||
Reference in New Issue
Block a user