Install OpenSearch for Magento 2.4.5-p1 on MacOS Ventura
Recently I was configuring my Mac M1 Pro for Magento 2, and I faced an issue with Elastic search, because Elastic search is not compatible with the latest macOS Ventura version, So I need to go with OpenSearch but Magneto 2.4.5 supports OpenSearch 1.2.x only.
For this, I need to first install the Docker desktop application on mac and then run just one simple command to install OpenSearch 1.2.4 version and enable it to run on default port 9200 with default credentials admin as username and admin as password.
There are two commands if you want to make your OpenSearch work on HTTPS with authentication go with this command.
docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" opensearchproject/opensearch:1.2.4
If you want to make it run on HTTP without credentials go with this command.
docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -e "plugins.security.disabled=true" opensearchproject/opensearch:1.2.4