Database services inside Docker Compose applications had no way to configure scheduled backups. Service-type deployments had this through ServiceDatabase, but Application buildpack deployments were left out — the service_id FK had no Application equivalent.
Changes:
service_id nullable and adds application_id FK so ServiceDatabase supports both parent types (XOR CHECK constraint on PostgreSQL)parseDockerComposeFile() creates ServiceDatabase rows linked to the application for detected database imagesDatabaseBackupJob re-queues after 5 minutes when the parent application is actively deployingIf AI was used:
Pest feature tests in tests/Feature/ApplicationComposeDatabaseBackupsTest.php:
[!IMPORTANT]
- I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
- I have searched existing issues and pull requests (including closed ones) to ensure this isn’t a duplicate.
- I have tested all the changes thoroughly with a local development instance of Coolify and I am confident that they will work as expected when a maintainer tests them.
/claim #7528
Enkae
@enkae-code
Ilias Ism
@me