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()
|
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'),
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user