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() public function __construct()
{ {
$this->client = new Client([ $this->client = new Client([
'api_key' => 'xyz', 'api_key' => '',
'nodes' => [ 'nodes' => [
[ [
'host' => env('TYPESENSE_CONNECTION'), 'host' => env('TYPESENSE_CONNECTION'),
+3 -2
View File
@@ -43,11 +43,12 @@ services:
ports: ports:
- "8108:8108" - "8108:8108"
volumes: volumes:
- ./typesense-data:/data - typesense-data:/data
command: '--data-dir /data --api-key=xyz --enable-cors' command: '--data-dir /data --api-key= --enable-cors'
volumes: volumes:
dbdata: dbdata:
typesense-data:
networks: networks:
default: default: