/claim #7528
Database services in Docker Compose files deployed via GitHub App (dockercompose buildpack) are now detected and backed up — matching the behavior of Empty Docker Compose and one-click service deployments.
parseDockerComposeFile() in bootstrap/helpers/shared.php has two paths:
isDatabaseImage(), creates ServiceDatabase records ✅isDatabaseImage() — no backup support ❌app/Models/ApplicationDatabase.php — mirrors ServiceDatabase with scheduled backup support via polymorphic relationshipapp/Policies/ApplicationDatabasePolicy.php — team-based authorizationdatabase/migrations/2025_02_19_000001_create_application_databases_table.phpdatabase/migrations/2025_02_19_000002_add_image_to_application_databases.phpbootstrap/helpers/shared.php — added isDatabaseImage() in Application path, creates ApplicationDatabase records via firstOrCreate()app/Models/Application.php — added databases() hasMany relationshipapp/Models/ScheduledDatabaseBackup.php — updated server() to handle ApplicationDatabase morphapp/Providers/AuthServiceProvider.php — registered new policy| Deployment | Creates DB Record | Backups |
|---|---|---|
| Empty Docker Compose | ✅ ServiceDatabase | ✅ |
| GitHub App (dockercompose) | ✅ ApplicationDatabase (new) | ✅ |
| One-click Services | ✅ ServiceDatabase | ✅ |
Hussain Alsaibai
@hussain-alsaibai
Ilias Ism
@me