In docker, I created the new publishing target as `preview` and set the new container by copying the `docker-componse` instructions of the CM service and removed the master connection string from this, and `solr.search` connection string is the same for the both `CM` and `preview`.

Now when I load a page that consumes the data from my custom index it loads fine on the `CM` but on the same page I check on the `preview`, it is not fetching the data from it.

FYI: I have logged the data to check which index is being read by the API so on both, the `CM` and `preview`, the same index is being consumed and although the `solr.search` connection string is still the same but the data is not coming.

Environment: `Sitecore 10.3` based on docker

EDIT-1: I did not create the new indexes like `sitecore_preview_master_index`, `sitecore_preview_web_index`, etc., instead I will use the same indexes that are being used for the CM, e.g., `sitecore_master_index`, `sitecore_web_index`.