How to secure ES API access deployed as docker on AWS

Hi,
Lately we deployed ES docker in our AWS account and currently we are figure out how can we secure the API access considering the fact we are using basic licence of ES.
We are using version 7.2

Best Regards,
Nir Sharabi
Developer
Supplant

Have you checked https://www.elastic.co/guide/en/elasticsearch/reference/7.2/configuring-tls-docker.html ?

Thanks for the reply.
I have already checked it and yet didn't find an answer to my question.
I am running with single ES node as follow:
docker run -d -p 9200:9200 -e "discovery.type=single-node" -v esdata:/usr/share/elasticsearch/data docker.elastic.co/elasticsearch/elasticsearch:7.3.2
and I am looking to add to this command the required credentials (user/pass).
BTW, when I added '-e "xpack.security.enabled=true"' I got the following exception: "missing authentication credentials for REST request"