Tanzu Platform for Cloud Foundry 4.0

Configuring Play Framework service connections

Last Updated March 13, 2025

Cloud Foundry provides support for connecting a Play Framework app to services such as MySQL and Postgres. In many cases, a Play Framework app running on Cloud Foundry can detect and configure connections to services.

Auto-configuration

By default, Cloud Foundry detects service connections in a Play Framework app and configure them to use the credentials that are provided in the Cloud Foundry environment. Auto-configuration only happens if it’s a single service for one of the supported types – MySQL or Postgres.