Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Merge remote-tracking branch 'origin/next' into reverb-realtime-migration

Andras Bacsaif6d06fc95ca7
diff --cc app/Actions/Server/CleanupDocker.php
index 2669873661,2f9d58797e..919feb6904
--- a/app/Actions/Server/CleanupDocker.php
+++ b/app/Actions/Server/CleanupDocker.php
@@@ -13,8 -13,14 +13,8 @@@ class CleanupDocke
public function handle(Server $server, bool $deleteUnusedVolumes = false, bool $deleteUnusedNetworks = false)
{
- $realtimeImage = config('constants.coolify.realtime_image');
- $realtimeImageVersion = config('constants.coolify.realtime_version');
- $realtimeImageWithVersion = "$realtimeImage:$realtimeImageVersion";
- $realtimeImageWithoutPrefix = 'coollabsio/coolify-realtime';
- $realtimeImageWithoutPrefixVersion = "coollabsio/coolify-realtime:$realtimeImageVersion";
-
$helperImageVersion = getHelperVersion();
- $helperImage = config('constants.coolify.helper_image');
+ $helperImage = coolifyHelperImage();
$helperImageWithVersion = "$helperImage:$helperImageVersion";
$helperImageWithoutPrefix = 'coollabsio/coolify-helper';
$helperImageWithoutPrefixVersion = "coollabsio/coolify-helper:$helperImageVersion";
diff --cc app/Http/Controllers/Api/DatabasesController.php
index bceef4d39d,3761effd72..1d64a7d6b7
--- a/app/Http/Controllers/Api/DatabasesController.php
+++ b/app/Http/Controllers/Api/DatabasesController.php
@@@ -2692,6 -2943,99 +2943,99 @@@ class DatabasesController extends Contr
]);
}
+ #[OA\Post(
+ summary: 'Move',
+ description: 'Move database to another project/environment. This is a purely organizational change — running containers are not affected. Note: after moving, the database will pick up shared environment variables from the new environment on the next deployment.',
+ path: '/databases/{uuid}/move',
+ operationId: 'move-database-by-uuid',
+ security: [
+ ['bearerAuth' => []],
+ ],
+ tags: ['Databases'],
+ parameters: [
+ new OA\Parameter(
+ name: 'uuid',
+ in: 'path',
+ description: 'UUID of the database.',
+ required: true,
+ schema: new OA\Schema(
+ type: 'string',
+ )
+ ),
+ ],
+ requestBody: new OA\RequestBody(
+ description: 'Target environment to move the database to.',
+ required: true,
+ content: [
+ new OA\MediaType(
+ mediaType: 'application/json',
+ schema: new OA\Schema(
+ type: 'object',
+ properties: [
+ 'environment_uuid' => ['type' => 'string', 'description' => 'UUID of the target environment.'],
+ ],
+ required: ['environment_uuid'],
+ )
+ ),
+ ]
+ ),
+ responses: [
+ new OA\Response(
+ response: 200,
+ description: 'Database moved successfully.',
+ content: [
+ new OA\MediaType(
+ mediaType: 'application/json',
+ schema: new OA\Schema(
+ type: 'object',
+ properties: [
+ 'message' => ['type' => 'string', 'example' => 'Database moved successfully.'],
+ 'uuid' => ['type' => 'string'],
+ 'project_uuid' => ['type' => 'string'],
+ 'environment_uuid' => ['type' => 'string'],
+ ]
+ )
+ ),
+ ]
+ ),
+ new OA\Response(
+ response: 401,
+ ref: '#/components/responses/401',
+ ),
+ new OA\Response(
+ response: 400,
+ ref: '#/components/responses/400',
+ ),
+ new OA\Response(
+ response: 404,
+ ref: '#/components/responses/404',
+ ),
+ new OA\Response(
+ response: 422,
+ ref: '#/components/responses/422',
+ ),
+ ]
+ )]
- public function move_by_uuid(Request $request): \Illuminate\Http\JsonResponse
++ public function move_by_uuid(Request $request): JsonResponse
+ {
+ $teamId = getTeamIdFromToken();
+ if (is_null($teamId)) {
+ return invalidTokenResponse();
+ }
+ $uuid = $request->route('uuid');
+ if (! $uuid) {
+ return response()->json(['message' => 'UUID is required.'], 400);
+ }
+ $database = queryDatabaseByUuidWithinTeam($request->uuid, $teamId);
+ if (! $database) {
+ return response()->json(['message' => 'Database not found.'], 404);
+ }
+
+ $this->authorize('update', $database);
+
+ return moveResourceToEnvironment($request, $database, 'Database', $teamId);
+ }
+
#[OA\Get(
summary: 'Start',
description: 'Start database. `Post` request is also accepted.',
diff --cc app/Http/Controllers/Api/ServicesController.php
index 11a23d46c5,aa9afe0adc..bb45b672a7
--- a/app/Http/Controllers/Api/ServicesController.php
+++ b/app/Http/Controllers/Api/ServicesController.php
@@@ -1654,6 -1869,99 +1869,99 @@@ class ServicesController extends Contro
return response()->json(['message' => 'Environment variable deleted.']);
}
+ #[OA\Post(
+ summary: 'Move',
+ description: 'Move service to another project/environment. This is a purely organizational change — running containers are not affected. Note: after moving, the service will pick up shared environment variables from the new environment on the next deployment.',
+ path: '/services/{uuid}/move',
+ operationId: 'move-service-by-uuid',
+ security: [
+ ['bearerAuth' => []],
+ ],
+ tags: ['Services'],
+ parameters: [
+ new OA\Parameter(
+ name: 'uuid',
+ in: 'path',
+ description: 'UUID of the service.',
+ required: true,
+ schema: new OA\Schema(
+ type: 'string',
+ )
+ ),
+ ],
+ requestBody: new OA\RequestBody(
+ description: 'Target environment to move the service to.',
+ required: true,
+ content: [
+ new OA\MediaType(
+ mediaType: 'application/json',
+ schema: new OA\Schema(
+ type: 'object',
+ properties: [
+ 'environment_uuid' => ['type' => 'string', 'description' => 'UUID of the target environment.'],
+ ],
+ required: ['environment_uuid'],
+ )
+ ),
+ ]
+ ),
+ responses: [
+ new OA\Response(
+ response: 200,
+ description: 'Service moved successfully.',
+ content: [
+ new OA\MediaType(
+ mediaType: 'application/json',
+ schema: new OA\Schema(
+ type: 'object',
+ properties: [
+ 'message' => ['type' => 'string', 'example' => 'Service moved successfully.'],
+ 'uuid' => ['type' => 'string'],
+ 'project_uuid' => ['type' => 'string'],
+ 'environment_uuid' => ['type' => 'string'],
+ ]
+ )
+ ),
+ ]
+ ),
+ new OA\Response(
+ response: 401,
+ ref: '#/components/responses/401',
+ ),
+ new OA\Response(
+ response: 400,
+ ref: '#/components/responses/400',
+ ),
+ new OA\Response(
+ response: 404,
+ ref: '#/components/responses/404',
+ ),
+ new OA\Response(
+ response: 422,
+ ref: '#/components/responses/422',
+ ),
+ ]
+ )]
- public function move_by_uuid(Request $request): \Illuminate\Http\JsonResponse
++ public function move_by_uuid(Request $request): JsonResponse
+ {
+ $teamId = getTeamIdFromToken();
+ if (is_null($teamId)) {
+ return invalidTokenResponse();
+ }
+ $uuid = $request->route('uuid');
+ if (! $uuid) {
+ return response()->json(['message' => 'UUID is required.'], 400);
+ }
+ $service = Service::whereRelation('environment.project.team', 'id', $teamId)->whereUuid($request->uuid)->first();
+ if (! $service) {
+ return response()->json(['message' => 'Service not found.'], 404);
+ }
+
+ $this->authorize('update', $service);
+
+ return moveResourceToEnvironment($request, $service, 'Service', $teamId);
+ }
+
#[OA\Get(
summary: 'Start',
description: 'Start service. `Post` request is also accepted.',
diff --cc composer.lock
index 84b8d5c8e7,5fb8745ffd..c813decd5b
--- a/composer.lock
+++ b/composer.lock
@@@ -4,7 -4,7 +4,7 @@@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "31bd5f70ceaa27f7153302600b5cd453",
- "content-hash": "dff5cce0f3fe7ba422d9d121cce7c082",
++ "content-hash": "22d4e844dfe10e14fd2be3571181ca99",
"packages": [
{
"name": "aws/aws-crt-php",
@@@ -6545,599 -6165,10 +6421,599 @@@
],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
- "source": "https://github.com/ramsey/uuid/tree/4.9.2"
+ "source": "https://github.com/ramsey/uuid/tree/4.9.3"
},
- "time": "2025-12-14T04:43:48+00:00"
+ "time": "2026-06-18T03:57:49+00:00"
},
+ {
+ "name": "ratchet/rfc6455",
+ "version": "v0.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/ratchetphp/RFC6455.git",
+ "reference": "859d95f85dda0912c6d5b936d036d044e3af47ef"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/ratchetphp/RFC6455/zipball/859d95f85dda0912c6d5b936d036d044e3af47ef",
+ "reference": "859d95f85dda0912c6d5b936d036d044e3af47ef",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.4",
+ "psr/http-factory-implementation": "^1.0",
+ "symfony/polyfill-php80": "^1.15"
+ },
+ "require-dev": {
+ "guzzlehttp/psr7": "^2.7",
+ "phpunit/phpunit": "^9.5",
+ "react/socket": "^1.3"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Ratchet\\RFC6455\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "role": "Developer"
+ },
+ {
+ "name": "Matt Bonneau",
+ "role": "Developer"
+ }
+ ],
+ "description": "RFC6455 WebSocket protocol handler",
+ "homepage": "http://socketo.me",
+ "keywords": [
+ "WebSockets",
+ "rfc6455",
+ "websocket"
+ ],
+ "support": {
+ "chat": "https://gitter.im/reactphp/reactphp",
+ "issues": "https://github.com/ratchetphp/RFC6455/issues",
+ "source": "https://github.com/ratchetphp/RFC6455/tree/v0.4.0"
+ },
+ "time": "2025-02-24T01:18:22+00:00"
+ },
+ {
+ "name": "react/cache",
+ "version": "v1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/cache.git",
+ "reference": "d47c472b64aa5608225f47965a484b75c7817d5b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b",
+ "reference": "d47c472b64aa5608225f47965a484b75c7817d5b",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0",
+ "react/promise": "^3.0 || ^2.0 || ^1.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "React\\Cache\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "Async, Promise-based cache interface for ReactPHP",
+ "keywords": [
+ "cache",
+ "caching",
+ "promise",
+ "reactphp"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/cache/issues",
+ "source": "https://github.com/reactphp/cache/tree/v1.2.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2022-11-30T15:59:55+00:00"
+ },
+ {
+ "name": "react/dns",
+ "version": "v1.14.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/dns.git",
+ "reference": "7562c05391f42701c1fccf189c8225fece1cd7c3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/dns/zipball/7562c05391f42701c1fccf189c8225fece1cd7c3",
+ "reference": "7562c05391f42701c1fccf189c8225fece1cd7c3",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0",
+ "react/cache": "^1.0 || ^0.6 || ^0.5",
+ "react/event-loop": "^1.2",
+ "react/promise": "^3.2 || ^2.7 || ^1.2.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
+ "react/async": "^4.3 || ^3 || ^2",
+ "react/promise-timer": "^1.11"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "React\\Dns\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "Async DNS resolver for ReactPHP",
+ "keywords": [
+ "async",
+ "dns",
+ "dns-resolver",
+ "reactphp"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/dns/issues",
+ "source": "https://github.com/reactphp/dns/tree/v1.14.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2025-11-18T19:34:28+00:00"
+ },
+ {
+ "name": "react/event-loop",
+ "version": "v1.6.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/event-loop.git",
+ "reference": "ba276bda6083df7e0050fd9b33f66ad7a4ac747a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/event-loop/zipball/ba276bda6083df7e0050fd9b33f66ad7a4ac747a",
+ "reference": "ba276bda6083df7e0050fd9b33f66ad7a4ac747a",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
+ },
+ "suggest": {
+ "ext-pcntl": "For signal handling support when using the StreamSelectLoop"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "React\\EventLoop\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.",
+ "keywords": [
+ "asynchronous",
+ "event-loop"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/event-loop/issues",
+ "source": "https://github.com/reactphp/event-loop/tree/v1.6.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2025-11-17T20:46:25+00:00"
+ },
+ {
+ "name": "react/promise",
+ "version": "v3.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/promise.git",
+ "reference": "23444f53a813a3296c1368bb104793ce8d88f04a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a",
+ "reference": "23444f53a813a3296c1368bb104793ce8d88f04a",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "1.12.28 || 1.4.10",
+ "phpunit/phpunit": "^9.6 || ^7.5"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions_include.php"
+ ],
+ "psr-4": {
+ "React\\Promise\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "A lightweight implementation of CommonJS Promises/A for PHP",
+ "keywords": [
+ "promise",
+ "promises"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/promise/issues",
+ "source": "https://github.com/reactphp/promise/tree/v3.3.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2025-08-19T18:57:03+00:00"
+ },
+ {
+ "name": "react/promise-timer",
+ "version": "v1.11.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/promise-timer.git",
+ "reference": "4f70306ed66b8b44768941ca7f142092600fafc1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/4f70306ed66b8b44768941ca7f142092600fafc1",
+ "reference": "4f70306ed66b8b44768941ca7f142092600fafc1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3",
+ "react/event-loop": "^1.2",
+ "react/promise": "^3.2 || ^2.7.0 || ^1.2.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions_include.php"
+ ],
+ "psr-4": {
+ "React\\Promise\\Timer\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.",
+ "homepage": "https://github.com/reactphp/promise-timer",
+ "keywords": [
+ "async",
+ "event-loop",
+ "promise",
+ "reactphp",
+ "timeout",
+ "timer"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/promise-timer/issues",
+ "source": "https://github.com/reactphp/promise-timer/tree/v1.11.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-06-04T14:27:45+00:00"
+ },
+ {
+ "name": "react/socket",
+ "version": "v1.17.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/socket.git",
+ "reference": "ef5b17b81f6f60504c539313f94f2d826c5faa08"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/socket/zipball/ef5b17b81f6f60504c539313f94f2d826c5faa08",
+ "reference": "ef5b17b81f6f60504c539313f94f2d826c5faa08",
+ "shasum": ""
+ },
+ "require": {
+ "evenement/evenement": "^3.0 || ^2.0 || ^1.0",
+ "php": ">=5.3.0",
+ "react/dns": "^1.13",
+ "react/event-loop": "^1.2",
+ "react/promise": "^3.2 || ^2.6 || ^1.2.1",
+ "react/stream": "^1.4"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
+ "react/async": "^4.3 || ^3.3 || ^2",
+ "react/promise-stream": "^1.4",
+ "react/promise-timer": "^1.11"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "React\\Socket\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP",
+ "keywords": [
+ "Connection",
+ "Socket",
+ "async",
+ "reactphp",
+ "stream"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/socket/issues",
+ "source": "https://github.com/reactphp/socket/tree/v1.17.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2025-11-19T20:47:34+00:00"
+ },
+ {
+ "name": "react/stream",
+ "version": "v1.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/reactphp/stream.git",
+ "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/reactphp/stream/zipball/1e5b0acb8fe55143b5b426817155190eb6f5b18d",
+ "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d",
+ "shasum": ""
+ },
+ "require": {
+ "evenement/evenement": "^3.0 || ^2.0 || ^1.0",
+ "php": ">=5.3.8",
+ "react/event-loop": "^1.2"
+ },
+ "require-dev": {
+ "clue/stream-filter": "~1.2",
+ "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "React\\Stream\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christian Lück",
+ "email": "[email protected]",
+ "homepage": "https://clue.engineering/"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "[email protected]",
+ "homepage": "https://wyrihaximus.net/"
+ },
+ {
+ "name": "Jan Sorgalla",
+ "email": "[email protected]",
+ "homepage": "https://sorgalla.com/"
+ },
+ {
+ "name": "Chris Boden",
+ "email": "[email protected]",
+ "homepage": "https://cboden.dev/"
+ }
+ ],
+ "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP",
+ "keywords": [
+ "event-driven",
+ "io",
+ "non-blocking",
+ "pipe",
+ "reactphp",
+ "readable",
+ "stream",
+ "writable"
+ ],
+ "support": {
+ "issues": "https://github.com/reactphp/stream/issues",
+ "source": "https://github.com/reactphp/stream/tree/v1.4.0"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-06-11T12:45:25+00:00"
+ },
{
"name": "resend/resend-laravel",
"version": "v0.20.0",
diff --cc docker-compose-maxio.dev.yml
index bb049ff400,61037391bc..28c67777b0
--- a/docker-compose-maxio.dev.yml
+++ b/docker-compose-maxio.dev.yml
@@@ -10,13 -10,12 +10,15 @@@ services
- GROUP_ID=${GROUPID:-1000}
ports:
- "${APP_PORT:-8000}:8080"
+ - "${FORWARD_PUSHER_PORT:-6001}:6001"
+ - "6002:6002"
+ extra_hosts:
+ - "host.docker.internal:host-gateway"
environment:
AUTORUN_ENABLED: false
- PUSHER_HOST: "${PUSHER_HOST}"
- PUSHER_PORT: "${PUSHER_PORT}"
+ PUSHER_HOST: "${PUSHER_HOST:-coolify}"
+ PUSHER_PORT: "${PUSHER_PORT:-6001}"
+ PUSHER_BACKEND_PORT: "${PUSHER_BACKEND_PORT:-6001}"
PUSHER_SCHEME: "${PUSHER_SCHEME:-http}"
PUSHER_APP_ID: "${PUSHER_APP_ID:-coolify}"
PUSHER_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
@@@ -64,7 -61,35 +66,6 @@@
timeout: 2s
volumes:
- dev_redis_data:/data
-
- soketi:
- image: coolify-realtime:dev
- pull_policy: never
- build:
- context: .
- dockerfile: ./docker/coolify-realtime/Dockerfile
- env_file:
- - .env
- ports:
- - "${FORWARD_SOKETI_PORT:-6001}:6001"
- - "6002:6002"
- extra_hosts:
- - "host.docker.internal:host-gateway"
- volumes:
- - ./storage:/var/www/html/storage
- - ./docker/coolify-realtime/terminal-server.js:/terminal/terminal-server.js
- - ./docker/coolify-realtime/terminal-utils.js:/terminal/terminal-utils.js
- environment:
- SOKETI_DEBUG: "false"
- SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID:-coolify}"
- SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
- SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET:-coolify}"
- SOKETI_HOST: "${SOKETI_HOST:-0.0.0.0}"
- healthcheck:
- test: [ "CMD-SHELL", "curl -fsS http://127.0.0.1:6001/ready && curl -fsS http://127.0.0.1:6002/ready || exit 1" ]
- interval: 5s
- retries: 10
- timeout: 2s
- entrypoint: ["/bin/sh", "/soketi-entrypoint.sh"]
vite:
image: node:24-alpine
pull_policy: always
diff --cc docker-compose.dev.yml
index cc520c992c,8f84b5d600..375415e25c
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@@ -10,13 -10,12 +10,15 @@@ services
- GROUP_ID=${GROUPID:-1000}
ports:
- "${APP_PORT:-8000}:8080"
+ - "${FORWARD_PUSHER_PORT:-6001}:6001"
+ - "6002:6002"
+ extra_hosts:
+ - "host.docker.internal:host-gateway"
environment:
AUTORUN_ENABLED: false
- PUSHER_HOST: "${PUSHER_HOST}"
- PUSHER_PORT: "${PUSHER_PORT}"
+ PUSHER_HOST: "${PUSHER_HOST:-coolify}"
+ PUSHER_PORT: "${PUSHER_PORT:-6001}"
+ PUSHER_BACKEND_PORT: "${PUSHER_BACKEND_PORT:-6001}"
PUSHER_SCHEME: "${PUSHER_SCHEME:-http}"
PUSHER_APP_ID: "${PUSHER_APP_ID:-coolify}"
PUSHER_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
@@@ -64,7 -61,35 +66,6 @@@
timeout: 2s
volumes:
- dev_redis_data:/data
-
- soketi:
- image: coolify-realtime:dev
- pull_policy: never
- build:
- context: .
- dockerfile: ./docker/coolify-realtime/Dockerfile
- env_file:
- - .env
- ports:
- - "${FORWARD_SOKETI_PORT:-6001}:6001"
- - "6002:6002"
- extra_hosts:
- - "host.docker.internal:host-gateway"
- volumes:
- - ./storage:/var/www/html/storage
- - ./docker/coolify-realtime/terminal-server.js:/terminal/terminal-server.js
- - ./docker/coolify-realtime/terminal-utils.js:/terminal/terminal-utils.js
- environment:
- SOKETI_DEBUG: "false"
- SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID:-coolify}"
- SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
- SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET:-coolify}"
- SOKETI_HOST: "${SOKETI_HOST:-0.0.0.0}"
- healthcheck:
- test: [ "CMD-SHELL", "curl -fsS http://127.0.0.1:6001/ready && curl -fsS http://127.0.0.1:6002/ready || exit 1" ]
- interval: 5s
- retries: 10
- timeout: 2s
- entrypoint: ["/bin/sh", "/soketi-entrypoint.sh"]
vite:
image: node:24-alpine
pull_policy: always
diff --cc other/nightly/upgrade.sh
index 84087d3dca,94fb77607f..bc0841e1ef
--- a/other/nightly/upgrade.sh
+++ b/other/nightly/upgrade.sh
@@@ -127,14 -133,21 +133,28 @@@ update_env_var()
fi
}
+normalize_pusher_port() {
+ if grep -q "^PUSHER_PORT=8080$" "$ENV_FILE"; then
+ sed -i "s|^PUSHER_PORT=8080$|PUSHER_PORT=6001|" "$ENV_FILE"
+ log "Updated PUSHER_PORT from app HTTP port 8080 to Reverb port 6001"
+ fi
+}
+
+ set_env_var() {
+ local key="$1"
+ local value="$2"
+
+ if grep -q "^${key}=" "$ENV_FILE"; then
+ sed -i "s|^${key}=.*|${key}=${value}|" "$ENV_FILE"
+ log "Updated ${key}"
+ else
+ printf '%s=%s\n' "$key" "$value" >>"$ENV_FILE"
+ log "Added ${key}"
+ fi
+ }
+
log "Checking environment variables..."
+ set_env_var "REGISTRY_URL" "$REGISTRY_URL"
update_env_var "PUSHER_APP_ID" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_KEY" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_SECRET" "$(openssl rand -hex 32)"
diff --cc scripts/upgrade.sh
index a4172fc155,a909d2e49a..a46cb3bf53
--- a/scripts/upgrade.sh
+++ b/scripts/upgrade.sh
@@@ -127,14 -133,21 +133,28 @@@ update_env_var()
fi
}
+normalize_pusher_port() {
+ if grep -q "^PUSHER_PORT=8080$" "$ENV_FILE"; then
+ sed -i "s|^PUSHER_PORT=8080$|PUSHER_PORT=6001|" "$ENV_FILE"
+ log "Updated PUSHER_PORT from app HTTP port 8080 to Reverb port 6001"
+ fi
+}
+
+ set_env_var() {
+ local key="$1"
+ local value="$2"
+
+ if grep -q "^${key}=" "$ENV_FILE"; then
+ sed -i "s|^${key}=.*|${key}=${value}|" "$ENV_FILE"
+ log "Updated ${key}"
+ else
+ printf '%s=%s\n' "$key" "$value" >>"$ENV_FILE"
+ log "Added ${key}"
+ fi
+ }
+
log "Checking environment variables..."
+ set_env_var "REGISTRY_URL" "$REGISTRY_URL"
update_env_var "PUSHER_APP_ID" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_KEY" "$(openssl rand -hex 32)"
update_env_var "PUSHER_APP_SECRET" "$(openssl rand -hex 32)"
diff --cc templates/service-templates-latest.json
index 6dbb4d311c,884b3bcd68..042fa99902
--- a/templates/service-templates-latest.json
+++ b/templates/service-templates-latest.json
@@@ -2346,6 -2346,24 +2346,24 @@@
"template_last_updated_at": "2025-12-15T17:56:33+01:00",
"port": "8080"
},
+ "inngest": {
+ "documentation": "https://www.inngest.com/docs/self-hosting?utm_source=coolify.io",
+ "slogan": "Durable workflow engine for background jobs, queues and scheduled tasks.",
+ "compose": "c2VydmljZXM6CiAgaW5uZ2VzdDoKICAgIGltYWdlOiAnaW5uZ2VzdC9pbm5nZXN0OnYxLjI3LjAnCiAgICBjb21tYW5kOiAnaW5uZ2VzdCBzdGFydCAtLWhvc3QgMC4wLjAuMCcKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfVVJMX0lOTkdFU1RfODI4OAogICAgICAtICdJTk5HRVNUX0VWRU5UX0tFWT0ke1NFUlZJQ0VfSEVYXzMyX0VWRU5US0VZfScKICAgICAgLSAnSU5OR0VTVF9TSUdOSU5HX0tFWT0ke1NFUlZJQ0VfSEVYXzMyX1NJR05JTkdLRVl9JwogICAgICAtICdJTk5HRVNUX1BPU1RHUkVTX1VSST1wb3N0Z3JlczovL2lubmdlc3Q6JHtTRVJWSUNFX1BBU1NXT1JEX1BPU1RHUkVTfUBwb3N0Z3Jlczo1NDMyL2lubmdlc3QnCiAgICAgIC0gJ0lOTkdFU1RfUkVESVNfVVJJPXJlZGlzOi8vcmVkaXM6NjM3OScKICAgIGRlcGVuZHNfb246CiAgICAgIHBvc3RncmVzOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICAgIHJlZGlzOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRAogICAgICAgIC0gaW5uZ2VzdAogICAgICAgIC0gYWxwaGEKICAgICAgICAtIGRvY3RvcgogICAgICAgIC0gaGVhbHRoY2hlY2sKICAgICAgaW50ZXJ2YWw6IDMwcwogICAgICB0aW1lb3V0OiAxMHMKICAgICAgcmV0cmllczogMwogICAgICBzdGFydF9wZXJpb2Q6IDQwcwogICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWQKICBwb3N0Z3JlczoKICAgIGltYWdlOiAncG9zdGdyZXM6MTcnCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBQT1NUR1JFU19EQj1pbm5nZXN0CiAgICAgIC0gUE9TVEdSRVNfVVNFUj1pbm5nZXN0CiAgICAgIC0gJ1BPU1RHUkVTX1BBU1NXT1JEPSR7U0VSVklDRV9QQVNTV09SRF9QT1NUR1JFU30nCiAgICB2b2x1bWVzOgogICAgICAtICdwb3N0Z3Jlcy1kYXRhOi92YXIvbGliL3Bvc3RncmVzcWwvZGF0YScKICAgIGhlYWx0aGNoZWNrOgogICAgICB0ZXN0OgogICAgICAgIC0gQ01ELVNIRUxMCiAgICAgICAgLSAncGdfaXNyZWFkeSAtVSBpbm5nZXN0IC1kIGlubmdlc3QnCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiA1cwogICAgICByZXRyaWVzOiA1CiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZAogIHJlZGlzOgogICAgaW1hZ2U6ICdyZWRpczo3LWFscGluZScKICAgIGNvbW1hbmQ6ICdyZWRpcy1zZXJ2ZXIgLS1hcHBlbmRvbmx5IHllcycKICAgIHZvbHVtZXM6CiAgICAgIC0gJ3JlZGlzLWRhdGE6L2RhdGEnCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRAogICAgICAgIC0gcmVkaXMtY2xpCiAgICAgICAgLSBwaW5nCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiAzcwogICAgICByZXRyaWVzOiA1CiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZAo=",
+ "tags": [
+ "queue",
+ "workflow",
+ "jobs",
+ "events",
+ "background",
+ "automation"
+ ],
+ "category": "automation",
+ "logo": "svgs/inngest.png",
+ "minversion": "0.0.0",
- "template_last_updated_at": "2026-07-02T13:25:47+02:00",
++ "template_last_updated_at": null,
+ "port": "8288"
+ },
"invoice-ninja": {
"documentation": "https://invoiceninja.github.io/selfhost.html?utm_source=coolify.io",
"slogan": "The leading open-source invoicing platform",
diff --cc templates/service-templates.json
index 6a8966352e,f12516789a..0d2526f176
--- a/templates/service-templates.json
+++ b/templates/service-templates.json
@@@ -2346,6 -2346,24 +2346,24 @@@
"template_last_updated_at": "2025-12-15T17:56:33+01:00",
"port": "8080"
},
+ "inngest": {
+ "documentation": "https://www.inngest.com/docs/self-hosting?utm_source=coolify.io",
+ "slogan": "Durable workflow engine for background jobs, queues and scheduled tasks.",
+ "compose": "c2VydmljZXM6CiAgaW5uZ2VzdDoKICAgIGltYWdlOiAnaW5uZ2VzdC9pbm5nZXN0OnYxLjI3LjAnCiAgICBjb21tYW5kOiAnaW5uZ2VzdCBzdGFydCAtLWhvc3QgMC4wLjAuMCcKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfRlFETl9JTk5HRVNUXzgyODgKICAgICAgLSAnSU5OR0VTVF9FVkVOVF9LRVk9JHtTRVJWSUNFX0hFWF8zMl9FVkVOVEtFWX0nCiAgICAgIC0gJ0lOTkdFU1RfU0lHTklOR19LRVk9JHtTRVJWSUNFX0hFWF8zMl9TSUdOSU5HS0VZfScKICAgICAgLSAnSU5OR0VTVF9QT1NUR1JFU19VUkk9cG9zdGdyZXM6Ly9pbm5nZXN0OiR7U0VSVklDRV9QQVNTV09SRF9QT1NUR1JFU31AcG9zdGdyZXM6NTQzMi9pbm5nZXN0JwogICAgICAtICdJTk5HRVNUX1JFRElTX1VSST1yZWRpczovL3JlZGlzOjYzNzknCiAgICBkZXBlbmRzX29uOgogICAgICBwb3N0Z3JlczoKICAgICAgICBjb25kaXRpb246IHNlcnZpY2VfaGVhbHRoeQogICAgICByZWRpczoKICAgICAgICBjb25kaXRpb246IHNlcnZpY2VfaGVhbHRoeQogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQKICAgICAgICAtIGlubmdlc3QKICAgICAgICAtIGFscGhhCiAgICAgICAgLSBkb2N0b3IKICAgICAgICAtIGhlYWx0aGNoZWNrCiAgICAgIGludGVydmFsOiAzMHMKICAgICAgdGltZW91dDogMTBzCiAgICAgIHJldHJpZXM6IDMKICAgICAgc3RhcnRfcGVyaW9kOiA0MHMKICAgIHJlc3RhcnQ6IHVubGVzcy1zdG9wcGVkCiAgcG9zdGdyZXM6CiAgICBpbWFnZTogJ3Bvc3RncmVzOjE3JwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gUE9TVEdSRVNfREI9aW5uZ2VzdAogICAgICAtIFBPU1RHUkVTX1VTRVI9aW5uZ2VzdAogICAgICAtICdQT1NUR1JFU19QQVNTV09SRD0ke1NFUlZJQ0VfUEFTU1dPUkRfUE9TVEdSRVN9JwogICAgdm9sdW1lczoKICAgICAgLSAncG9zdGdyZXMtZGF0YTovdmFyL2xpYi9wb3N0Z3Jlc3FsL2RhdGEnCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gJ3BnX2lzcmVhZHkgLVUgaW5uZ2VzdCAtZCBpbm5nZXN0JwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogNXMKICAgICAgcmV0cmllczogNQogICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWQKICByZWRpczoKICAgIGltYWdlOiAncmVkaXM6Ny1hbHBpbmUnCiAgICBjb21tYW5kOiAncmVkaXMtc2VydmVyIC0tYXBwZW5kb25seSB5ZXMnCiAgICB2b2x1bWVzOgogICAgICAtICdyZWRpcy1kYXRhOi9kYXRhJwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQKICAgICAgICAtIHJlZGlzLWNsaQogICAgICAgIC0gcGluZwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogM3MKICAgICAgcmV0cmllczogNQogICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWQK",
+ "tags": [
+ "queue",
+ "workflow",
+ "jobs",
+ "events",
+ "background",
+ "automation"
+ ],
+ "category": "automation",
+ "logo": "svgs/inngest.png",
+ "minversion": "0.0.0",
- "template_last_updated_at": "2026-07-02T13:25:47+02:00",
++ "template_last_updated_at": null,
+ "port": "8288"
+ },
"invoice-ninja": {
"documentation": "https://invoiceninja.github.io/selfhost.html?utm_source=coolify.io",
"slogan": "The leading open-source invoicing platform",
diff --cc tests/Feature/PullChangelogTest.php
index 145638812b,7793b0b775..faadfb2cee
--- a/tests/Feature/PullChangelogTest.php
+++ b/tests/Feature/PullChangelogTest.php
@@@ -32,9 -32,9 +32,9 @@@ afterEach(function ()
File::delete(base_path('changelogs/1999-01.json'));
});
--test('releases_url config defaults to the GitHub raw source', function () {
++test('releases_url config defaults to the Coollabs CDN', function () {
expect(config('constants.coolify.releases_url'))
- ->toBe('https://raw.githubusercontent.com/coollabsio/coolify-cdn/main/json/releases.json');
- ->toBe('https://cdn.coollabs.io/coolify/service-templates-latest.json');
++ ->toBe('https://cdn.coollabs.io/coolify/releases.json');
});
test('PullChangelog fetches from the configured releases_url and writes the changelog', function () {
diff --cc tests/Feature/ReverbAndTerminalPackagingTest.php
index 6677fa0468,0000000000..bd61bb6562
mode 100644,000000..100644
--- a/tests/Feature/ReverbAndTerminalPackagingTest.php
+++ b/tests/Feature/ReverbAndTerminalPackagingTest.php
@@@ -1,141 -1,0 +1,141 @@@
+<?php
+
+it('uses Reverb as the first-party broadcast server', function () {
+ expect(file_get_contents(base_path('composer.json')))
+ ->toContain('"laravel/reverb"')
+ ->and(file_get_contents(config_path('broadcasting.php')))
+ ->toContain("'default' => env('BROADCAST_CONNECTION', env('BROADCAST_DRIVER', 'reverb'))")
+ ->toContain("'reverb' => [")
+ ->toContain("'key' => env('PUSHER_APP_KEY', 'coolify')")
+ ->toContain("'secret' => env('PUSHER_APP_SECRET', 'coolify')")
+ ->toContain("'app_id' => env('PUSHER_APP_ID', 'coolify')")
+ ->toContain("'host' => env('PUSHER_HOST', 'coolify')")
+ ->toContain("'port' => env('PUSHER_BACKEND_PORT', 6001)")
+ ->and(file_exists(config_path('reverb.php')))->toBeTrue();
+});
+
+it('runs Reverb and terminal websocket services inside the Coolify containers', function (string $dockerfile, string $dependencyService) {
+ $dockerfileContents = file_get_contents(base_path($dockerfile));
+
+ expect($dockerfileContents)
+ ->toContain('nodejs')
+ ->toContain('npm')
+ ->toContain('COPY docker/coolify-terminal/package*.json /terminal/')
+ ->toContain('COPY docker/coolify-terminal/terminal-server.js /terminal/terminal-server.js')
+ ->toContain('COPY docker/coolify-terminal/terminal-utils.js /terminal/terminal-utils.js')
+ ->toContain('npm ci --prefix /terminal')
+ ->and(file_get_contents(base_path(dirname($dockerfile).'/etc/s6-overlay/s6-rc.d/reverb/run')))
+ ->toContain('exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}')
+ ->and(file_get_contents(base_path(dirname($dockerfile).'/etc/s6-overlay/s6-rc.d/terminal-server/run')))
+ ->toContain('exec node /terminal/terminal-server.js')
+ ->and(file_exists(base_path(dirname($dockerfile)."/etc/s6-overlay/s6-rc.d/reverb/dependencies.d/{$dependencyService}")))->toBeTrue()
+ ->and(file_exists(base_path(dirname($dockerfile)."/etc/s6-overlay/s6-rc.d/terminal-server/dependencies.d/{$dependencyService}")))->toBeTrue()
+ ->and(file_exists(base_path(dirname($dockerfile).'/etc/s6-overlay/s6-rc.d/user/contents.d/reverb')))->toBeTrue()
+ ->and(file_exists(base_path(dirname($dockerfile).'/etc/s6-overlay/s6-rc.d/user/contents.d/terminal-server')))->toBeTrue();
+})->with([
+ 'production image' => ['docker/production/Dockerfile', 'init-script'],
+ 'development image' => ['docker/development/Dockerfile', 'init-setup'],
+]);
+
+it('removes the dedicated realtime service from bundled compose files', function (string $composeFile, bool $hasRuntimeEnvironment) {
+ $composeContents = file_get_contents(base_path($composeFile));
+
+ expect($composeContents)
+ ->not->toContain('coolify-realtime')
+ ->not->toContain('soketi:')
+ ->not->toContain('SOKETI_DEFAULT_APP_ID')
+ ->toContain('6001')
+ ->toContain('6002')
+ ->not->toContain('REVERB_');
+
+ if ($hasRuntimeEnvironment) {
+ expect($composeContents)->toContain('PUSHER_BACKEND_PORT');
+ }
+})->with([
+ 'base compose' => ['docker-compose.yml', false],
+ 'production compose' => ['docker-compose.prod.yml', true],
+ 'development compose' => ['docker-compose.dev.yml', true],
+ 'maxio development compose' => ['docker-compose-maxio.dev.yml', true],
+ 'windows compose' => ['docker-compose.windows.yml', true],
+]);
+
+it('keeps the internal Reverb listen port separate from the public Pusher port', function () {
+ expect(file_get_contents(config_path('reverb.php')))
+ ->toContain("'port' => env('PUSHER_BACKEND_PORT', 6001)")
+ ->toContain("'port' => env('PUSHER_PORT', 6001)")
+ ->and(file_get_contents(base_path('docker/production/etc/s6-overlay/s6-rc.d/reverb/run')))
+ ->toContain('exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}')
+ ->and(file_get_contents(base_path('docker/development/etc/s6-overlay/s6-rc.d/reverb/run')))
+ ->toContain('exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}');
+});
+
+it('proxies Reverb and terminal websocket traffic to the Coolify app container', function () {
+ $serverModel = file_get_contents(app_path('Models/Server.php'));
+
+ expect($serverModel)
+ ->toContain("'rule' => \"Host(`{\$host}`) && PathPrefix(`/app`)\"")
+ ->toContain("'rule' => \"Host(`{\$host}`) && PathPrefix(`/apps`)\"")
+ ->toContain("'rule' => \"Host(`{\$host}`) && PathPrefix(`/terminal/ws`)\"")
+ ->toContain("'url' => 'http://coolify:6001'")
+ ->toContain("'url' => 'http://coolify:6002'")
+ ->toContain('reverse_proxy coolify:6001')
+ ->toContain('reverse_proxy coolify:6002')
+ ->not->toContain('http://coolify-realtime:6001')
+ ->not->toContain('http://coolify-realtime:6002')
+ ->not->toContain('reverse_proxy coolify-realtime');
+});
+
+it('uses Pusher environment keys for self-hosted Reverb compatibility', function () {
+ $files = [
+ '.env.production',
+ '.env.windows-docker-desktop.example',
+ 'docker-compose.prod.yml',
+ 'docker-compose.dev.yml',
+ 'docker-compose-maxio.dev.yml',
+ 'docker-compose.windows.yml',
+ 'scripts/install.sh',
+ 'scripts/upgrade.sh',
+ 'other/nightly/.env.production',
+ 'other/nightly/docker-compose.prod.yml',
+ 'other/nightly/docker-compose.windows.yml',
+ 'other/nightly/install.sh',
+ 'other/nightly/upgrade.sh',
+ ];
+
+ foreach ($files as $file) {
+ expect(file_get_contents(base_path($file)))
+ ->toContain('PUSHER_')
+ ->not->toContain('REVERB_');
+ }
+});
+
+it('defaults the public Pusher websocket port to Reverb instead of the HTTP app port', function () {
+ expect(file_get_contents(base_path('.env.production')))
- ->toContain('PUSHER_PORT=6001')
- ->toContain('PUSHER_BACKEND_PORT=6001')
++ ->not->toContain('PUSHER_PORT=')
++ ->not->toContain('PUSHER_BACKEND_PORT=')
+ ->and(file_get_contents(base_path('.env.windows-docker-desktop.example')))
+ ->toContain('PUSHER_PORT=6001')
+ ->toContain('PUSHER_BACKEND_PORT=6001')
+ ->and(file_get_contents(base_path('scripts/install.sh')))
+ ->toContain('update_env_var "PUSHER_PORT" "6001"')
+ ->toContain('update_env_var "PUSHER_BACKEND_PORT" "6001"')
+ ->toContain('normalize_pusher_port')
+ ->and(file_get_contents(base_path('scripts/upgrade.sh')))
+ ->toContain('update_env_var "PUSHER_PORT" "6001"')
+ ->toContain('update_env_var "PUSHER_BACKEND_PORT" "6001"')
+ ->toContain('normalize_pusher_port');
+});
+
+it('stops publishing or preserving the obsolete realtime image', function () {
+ expect(file_get_contents(config_path('constants.php')))
+ ->not->toContain('realtime_version')
+ ->not->toContain('realtime_image')
+ ->and(file_get_contents(app_path('Actions/Server/CleanupDocker.php')))
+ ->not->toContain('coolify-realtime')
+ ->not->toContain('realtimeImage')
+ ->and(file_get_contents(base_path('versions.json')))
+ ->not->toContain('"realtime"')
+ ->and(is_dir(base_path('docker/coolify-realtime')))->toBeFalse()
+ ->and(file_exists(base_path('.github/workflows/coolify-realtime.yml')))->toBeFalse()
+ ->and(file_exists(base_path('.github/workflows/coolify-realtime-next.yml')))->toBeFalse();
+});