-
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.
Merge pull request #344 from tighten/tm/pgvector
Adds pgvector
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
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,30 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
class PGVector extends BaseService | ||
{ | ||
protected static $displayName = 'PGVector'; | ||
protected static $category = Category::DATABASE; | ||
|
||
protected $organization = 'pgvector'; | ||
protected $imageName = 'pgvector'; | ||
protected $defaultPort = 5432; | ||
protected $prompts = [ | ||
[ | ||
'shortname' => 'volume', | ||
'prompt' => 'What is the Docker volume name?', | ||
'default' => 'pgvector_data', | ||
], | ||
[ | ||
'shortname' => 'root_password', | ||
'prompt' => 'What will the password for the `postgres` user be?', | ||
'default' => 'password', | ||
], | ||
]; | ||
|
||
protected $dockerRunTemplate = '-p "${:port}":5432 \ | ||
-e POSTGRES_PASSWORD="${:root_password}" \ | ||
-v "${:volume}":/var/lib/postgresql/data \ | ||
"${:organization}"/"${:image_name}":"${:tag}"'; | ||
} |
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