# Docker profile — used when running in Docker Compose
spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}

# Enable Flyway for container startup (fresh DB)
spring.flyway.enabled=true
spring.jpa.hibernate.ddl-auto=validate

# JWT secret from environment
cannamanage.security.jwt.secret=${CANNAMANAGE_SECURITY_JWT_SECRET}

# Actuator
management.endpoints.web.exposure.include=health
management.endpoint.health.show-details=never
# No SMTP container in this deployment — don't let the mail health indicator
# drag /actuator/health to DOWN (503), which would mark the container unhealthy.
management.health.mail.enabled=false

# Disable mail in Docker (no SMTP container)
spring.mail.host=localhost
spring.mail.port=1025
