# ----------------------------------------
# Application
# ----------------------------------------
spring.application.name=tag
server.port=8080
server.address=0.0.0.0
spring.main.allow-bean-definition-overriding=true

# ----------------------------------------
# MySQL Database
# ----------------------------------------
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://db:3306/trackash_tag_db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
spring.datasource.username=trackash_root
spring.datasource.password=letusgrindAB12@@
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect

# ----------------------------------------
# Redis Cache
# ----------------------------------------
spring.data.redis.host=redis
spring.data.redis.port=6379

# ----------------------------------------
# Logging
# ----------------------------------------
logging.level.org.springframework=INFO
logging.level.com.yourpackage=DEBUG
spring.jackson.serialization.indent_output=true
spring.jackson.default-property-inclusion=non_null

# ----------------------------------------
# JWT (example secret)
# ----------------------------------------
jwt.secret=1234567890abcdef1234567890abcdef

# ----------------------------------------
# Optional: HikariCP tuning
# ----------------------------------------
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.minimum-idle=2
spring.datasource.hikari.idle-timeout=30000
spring.datasource.hikari.pool-name=TagHikariCP
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
