running sonarqube / elastic search issues

I’m attempting to deploy a sonarqube instance, but I’m having issues with the elastic search requirements. I have yet to find any good info on this issue; there are a few other posts that don’t have any working answers yet.

2023-02-25T23:50:10.205 app[7189b06e] ord [info] ERROR: [2] bootstrap checks failed. You must address the points described in the following [2] lines before starting Elasticsearch.
2023-02-25T23:50:10.205 app[7189b06e] ord [info] bootstrap check failure [1] of [2]: max file descriptors [10240] for elasticsearch process is too low, increase to at least [65535]
2023-02-25T23:50:10.205 app[7189b06e] ord [info] bootstrap check failure [2] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Dockerfile is simply just

FROM sonarqube:latest

And the ENV vars are

SONAR_JDBC_URL=jdbc:postgresql://url
SONAR_JDBC_USERNAME=postgres
SONAR_JDBC_PASSWORD=password

Anyone with any ideas please let me know and I’ll try if you don’t!

Thanks in advance.