Last active
November 1, 2023 13:44
-
-
Save WahidinAji/9680a0e594c221ef1f86bc1255780689 to your computer and use it in GitHub Desktop.
running TypeSense on your local machine with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pull the image | |
docker pull typesense/typesense:0.26.0.rc25 | |
#run you image as containe | |
#- make sure you are in Documents directory | |
cd Documents | |
makdir typesense-data | |
docker run -d -p 8108:8108 -v ~/Documents/typesense-data:/data typesense/typesense:0.26.0.rc25 --data-dir /data --api-key=xyz --enable-cors | |
#check the status health of typesense | |
curl -f http://localhost:8108/health | |
#the output should be | |
{"ok":true}% | |
##note | |
#to remove all container list | |
#docker container rm $(docker ps -a -q) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment