Unable to start elasticsearch 7.8 container with a password

Hello,
I am attempting to setup an elastisearch cluster using a hot and warm bode using one docker-compose. However, when starting up the setup I am unable to log in, and see the following error in docker logs:

"stacktrace": ["org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable

Please find data of _cat/shards/.security-7 below

.security-7 0 r STARTED 51 145.5kb 192.168.112.3 warm1
.security-7 0 p STARTED 51 110.5kb 192.168.0.23  elastic-stack-node-0

@vamsikrishna_medeti

What is the output from the _cat/recovery?v end point?