Skip to content

Commit

Permalink
Merge pull request #300 from therobfonz/add-couchbase
Browse files Browse the repository at this point in the history
Add Couchbase to database services
  • Loading branch information
mattstauffer authored Dec 26, 2022
2 parents f455b54 + 12a8674 commit 6eb1585
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions app/Services/Couchbase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

namespace App\Services;

class Couchbase extends BaseService
{
protected static $category = Category::DATABASE;

protected $imageName = 'couchbase';
protected $defaultPrompts = [
[
'shortname' => 'ports',
'prompt' => 'Which port(s) would you like %s to use? (Must be 6 ports)',
'default' => '8091-8096',
],
[
'shortname' => 'tag',
'prompt' => 'Which tag (version) of %s would you like to use?',
'default' => 'latest',
],
[
'shortname' => 'encrypted_ports',
'prompt' => 'Which encrypted port(s) would you like %s to use? (Must be 2 ports)',
'default' => '11210-11211',
],
[
'shortname' => 'volume',
'prompt' => 'What is the Docker volume name?',
'default' => 'couchbase_data',
],
];

protected $dockerRunTemplate = '-d \
-p "${:ports}":8091-8096 \
-p "${:encrypted_ports}":11210-11211 \
-v "${:volume}":/opt/couchbase/var \
"${:image_name}":"${:tag}"';

protected static $displayName = 'Couchbase';
}

0 comments on commit 6eb1585

Please sign in to comment.