Replace bind mount with Docker managed volume for Typesense
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user