/claim #7528
When deploying Docker Compose files via GitHub App (using the dockercompose buildpack), database services were not being detected and ServiceDatabase records were not created. This meant automated backups were not available for databases in these deployments.
In applicationParser() in parsers.php, when isDatabaseImage() detected a database image, the code would first check if a ServiceApplication record already existed for the service and reuse it instead of creating a ServiceDatabase record.
This fix ensures that when isDatabaseImage() returns true, a ServiceDatabase record is always created (or reused if it already exists), regardless of any existing ServiceApplication records. This enables proper backup functionality for database containers deployed via GitHub App docker compose.
The fix removes the check for existing ServiceApplication in the isDatabase branch, ensuring ServiceDatabase is always created for detected databases.
Closes coollabsio/coolify#7528
THEMACHINE Corp.
@themachinecorp
Ilias Ism
@me