How to change the entry URL/basepath of opensearch-dashboard

Hello Everyone,

We wanted to change the entry URL/basepath of the opensearch-dashabord.

Currently it is the basepath “/” and I wanted to changes it “/opensearch”. We are using docker.compose.yml for opensearch and opensearch-dashboard.

Example as below:-

Currently I can access opensearch-dashabord on this URL http://localhost:5601/

I wanted to access it on this URL http://localhost:5601/opensearch

Kindly suggest how to make these changes. Any suggestions would be highly appreciable.