Is there any reason why we can't just run the following command on the server where you need elastic search? (Assuming its a private server for 1 client)
docker run --restart unless-stopped --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:tag