-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
844f1f6
commit 9ad1a5a
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
class Typesense extends BaseService | ||
{ | ||
protected static $category = Category::SEARCH; | ||
|
||
protected $organization = 'typesense'; | ||
protected $imageName = 'typesense'; | ||
protected $defaultPort = 8108; | ||
protected $prompts = [ | ||
[ | ||
'shortname' => 'volume', | ||
'prompt' => 'What is the Docker volume name?', | ||
'default' => 'typesense_data', | ||
], | ||
[ | ||
'shortname' => 'admin_key', | ||
'prompt' => 'What will the admin API key be?', | ||
'default' => 'typesenseadmin', | ||
], | ||
]; | ||
|
||
protected $dockerRunTemplate = '-p "${:port}":8108 \ | ||
-v "${:volume}":/data \ | ||
"${:organization}"/"${:image_name}":"${:tag}" \ | ||
--data-dir /data \ | ||
--api-key="${:admin_key}"'; | ||
|
||
protected static $displayName = 'Typesense'; | ||
} |