From 9ad1a5ae2708eb5cc76133c14ea39c7d26e85c81 Mon Sep 17 00:00:00 2001 From: Justin Dantzer Date: Thu, 18 Jan 2024 12:04:42 -0500 Subject: [PATCH] Add Typesense service class --- app/Services/Typesense.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/Services/Typesense.php diff --git a/app/Services/Typesense.php b/app/Services/Typesense.php new file mode 100644 index 00000000..a585a05e --- /dev/null +++ b/app/Services/Typesense.php @@ -0,0 +1,32 @@ + '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'; +}