Skip to content

Commit

Permalink
Merge pull request #369 from tighten/tm/laravel-reverb
Browse files Browse the repository at this point in the history
Adds a Reverb Service
  • Loading branch information
tonysm authored Jan 3, 2025
2 parents 3d84c62 + deab3b2 commit 49f599d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions app/Services/Reverb.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php

namespace App\Services;

class Reverb extends BaseService
{
protected static $category = Category::SOCKET;

protected $organization = 'tighten';
protected $imageName = 'takeout-reverb-server';
protected $tag = 'latest';
protected $defaultPort = 6001;
protected $prompts = [
[
'shortname' => 'dashboard_port',
'prompt' => 'Pulse Dashboard Port',
'default' => '9601',
],
[
'shortname' => 'app_id',
'prompt' => 'Reverb App ID',
'default' => 'app-id',
],
[
'shortname' => 'app_key',
'prompt' => 'Reverb App Key',
'default' => 'app-key',
],
[
'shortname' => 'app_secret',
'prompt' => 'Reverb App Secret',
'default' => 'app-secret',
],
];

protected $dockerRunTemplate = '-p "${:port}":6001 \
-p "${:dashboard_port}":9601 \
-e REVERB_APP_KEY="${:app_key}" \
-e REVERB_APP_SECRET="${:app_secret}" \
-e REVERB_APP_ID="${:app_id}" \
-e REVERB_SERVER_HOST="0.0.0.0" \
-e REVERB_SERVER_PORT="${:port}" \
-e REVERB_HOST="0.0.0.0" \
-e REVERB_PORT="${:port}" \
-e REVERB_SCHEME="http" \
"${:organization}"/"${:image_name}":"${:tag}"';

protected function shellCommand(): string
{
return 'sh';
}
}

0 comments on commit 49f599d

Please sign in to comment.