feat: add typesense volume

This commit is contained in:
Raymond Tukpe
2022-08-16 18:08:52 +01:00
parent 4f8eecf487
commit f4841e3e9e
5 changed files with 17 additions and 4 deletions

View File

@@ -12,4 +12,6 @@ if [ -z "$TYPESENSE_VERSION" ]; then
fi
echo "Starting single-node Typesense instance"
docker run -d -p $TYPESENSE_PORT:8108 --name $TYPESENSE_CONTAINER_NAME typesense/typesense:$TYPESENSE_VERSION --api-key=$TYPESENSE_API_KEY --data-dir /data --enable-cors
mkdir /tmp/typesense
docker run -d -p $TYPESENSE_PORT:8108 --name $TYPESENSE_CONTAINER_NAME -v/tmp/typesense:/data typesense/typesense:$TYPESENSE_VERSION --api-key=$TYPESENSE_API_KEY --data-dir /data --enable-cors