The content of the dns and ip section is translated into a Subject Alternative Name inside the generated certificates. Usually, you would put the hostname and/or the FQDN of your server here. Under docker, Elasticsearch binds to the localhost interface of the container, and external mapping is done via docker. AFAIK, for this to work correctly in a docker-compose setup, the IP address (127.0.0.1) and DNS name of the localhost interface have to be added to the SAN as well.
I haven't tried this myself, yet, to use a wildcard certificate issued by one of the trusted CAs. However, you should be able to adjust the instructions to replace the self-signed certificates with those obtained from your CA.
If things go wrong, there are various settings that change the ssl.verification_mode, that can be used to relax the verification policy in use. Depending on where errors occur, you may want to relax the setting to e.g. certificate. See the documentation for more details.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.