spring: application: name: mtusi-messenger datasource: url: ${DATABASE_URL:jdbc:postgresql://localhost:5432/messenger} username: ${DATABASE_USER:messenger} password: ${DATABASE_PASSWORD:messenger} hikari: maximum-pool-size: ${DATABASE_POOL_SIZE:10} minimum-idle: ${DATABASE_MIN_IDLE:2} connection-timeout: 5000 validation-timeout: 2000 idle-timeout: 600000 max-lifetime: 1800000 data: redis: host: ${REDIS_HOST:localhost} port: ${REDIS_PORT:6379} connect-timeout: ${REDIS_CONNECT_TIMEOUT:1s} timeout: ${REDIS_COMMAND_TIMEOUT:500ms} lettuce: pool: max-active: ${REDIS_POOL_MAX_ACTIVE:8} max-idle: ${REDIS_POOL_MAX_IDLE:8} min-idle: ${REDIS_POOL_MIN_IDLE:0} max-wait: ${REDIS_POOL_MAX_WAIT:500ms} jdbc: template: query-timeout: ${DATABASE_QUERY_TIMEOUT_SECONDS:5} transaction: default-timeout: ${DATABASE_TRANSACTION_TIMEOUT_SECONDS:5} flyway: # API replicas never race one another for migrations. Compose runs the # same image once as the dedicated migrate service with this overridden. enabled: ${FLYWAY_ENABLED:false} locations: classpath:db/migration jackson: deserialization: fail-on-unknown-properties: true lifecycle: timeout-per-shutdown-phase: 10s server: address: ${APP_HOST:0.0.0.0} port: ${APP_PORT:8080} shutdown: graceful messenger: storage: postgres session: ttl-seconds: ${SESSION_TTL_SECONDS:3600} cache: user-ttl-seconds: ${USER_CACHE_TTL_SECONDS:300} idempotency: ttl-seconds: ${IDEMPOTENCY_TTL_SECONDS:86400}