Hi All, i need to understand below docker command ...
# community-help
v
Hi All, i need to understand below docker command
Copy code
docker run -p 8108:8108 -v$(pwd)/typesense-data:/data typesense/typesense:0.23.1 \
  --data-dir /data --api-key=$TYPESENSE_API_KEY --enable-cors
i dont know -v$(pwd)/typesense-data:/data what does this indicate and also this one --data-dir /data.i just know it is the place where typesense data is store but i need to know more.
k
You are mounting present working directory (pwd) as /typesense-data volume inside the container. Then you also must make --data-dir point to that mounted volume.
v
I have tried to run on server but i am not getting any data on page.
below is the screenshot.
k
Have you tried running any of our existing demos? Do they work?
v
this is demo only
k
What error are you getting?
v
i am not getting any error
its just not able to see data
k
Check your browser console
v
message has been deleted
k
Check if the typesense collection actually has data.
v
Done indexing. [root@solr-listing-1406-26jj typesense-instantsearch-demo]# npm start
typesense-instantsearch-demo@1.0.0 start /var/www/html/algolia/typesense/typesense-instantsearch-demo
parcel index.html --port 3000
Server running at http://localhost:3000 Built in 1.60s. [root@solr-listing-1406-26jj typesense-instantsearch-demo]# curl -H "X-TYPESENSE-API-KEY: xyz" "http://publicip:8108/collections/hungama/documents/search?q=*&query_by=dataset" | jq curl: (7) couldn't connect to host
getting above error