Skip to content

Instantly share code, notes, and snippets.

@WahidinAji
Last active November 1, 2023 13:44
Show Gist options
  • Save WahidinAji/9680a0e594c221ef1f86bc1255780689 to your computer and use it in GitHub Desktop.
Save WahidinAji/9680a0e594c221ef1f86bc1255780689 to your computer and use it in GitHub Desktop.
running TypeSense on your local machine with docker
#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