Replace bind mount with Docker managed volume for Typesense

This commit is contained in:
2025-12-07 16:13:03 +01:00
parent 20654b2eff
commit 2db242d43a
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class SearchController extends Controller
public function __construct()
{
$this->client = new Client([
'api_key' => 'xyz',
'api_key' => '',
'nodes' => [
[
'host' => env('TYPESENSE_CONNECTION'),
+3 -2
View File
@@ -43,11 +43,12 @@ services:
ports:
- "8108:8108"
volumes:
- ./typesense-data:/data
command: '--data-dir /data --api-key=xyz --enable-cors'
- typesense-data:/data
command: '--data-dir /data --api-key= --enable-cors'
volumes:
dbdata:
typesense-data:
networks:
default: