Unable to start elasticsearch 7.8 container with a password

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 warm1
.security-7 0 p STARTED 51 110.5kb  elastic-stack-node-0


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