CO

Description

This PR adds SurrealDB as a new standalone database option in Coolify.

/claim #7642

Changes

New Files

  • app/Models/StandaloneSurrealdb.php - Model with all necessary attributes and relationships
  • app/Actions/Database/StartSurrealdb.php - Docker container management action
  • app/Livewire/Project/Database/Surrealdb/General.php - Livewire component for configuration
  • resources/views/livewire/project/database/surrealdb/general.blade.php - Blade view
  • database/migrations/2026_01_27_000001_create_standalone_surrealdbs_table.php - Migration

Modified Files

  • app/Models/Environment.php - Added surrealdbs() relationship and updated databases() method
  • app/Enums/NewDatabaseTypes.php - Added SURREALDB enum
  • app/Enums/NewResourceTypes.php - Added SURREALDB enum
  • bootstrap/helpers/databases.php - Added create_standalone_surrealdb() function
  • bootstrap/helpers/shared.php - Updated query functions and type unions
  • app/Livewire/Project/New/Select.php - Added SurrealDB to database list
  • app/Livewire/Project/Resource/Create.php - Added SurrealDB creation handler
  • resources/views/livewire/project/database/configuration.blade.php - Added SurrealDB component rendering

SurrealDB Features

  • User/password authentication (--user / --pass flags)
  • RocksDB persistence at /data
  • Health check via /health endpoint
  • WebSocket RPC endpoint at port 8000
  • Public proxy support
  • Log drain support

Testing

  • Followed existing patterns from ClickHouse implementation (most recent database addition)
  • All model relationships and helper functions follow established conventions

Screenshots

N/A - Backend implementation only

Checklist

  • Code follows the project’s coding standards
  • Changes are documented
  • No breaking changes introduced

Claim

Total prize pool $50
Total paid $0
Status Pending
Submitted January 27, 2026
Last updated January 27, 2026

Contributors

AN

andresctirado

@andresctirado

100%

Sponsors

JO

Jordan Hall

@Jordan-Hall

$50