Running crate in docker but keep getting mem low error

I am attemping to start crate within a docker swarm enviroment, however keep getting the following error when lauching

[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] by adding vm.max_map_count = 262144 to /etc/sysctl.conf or invoking sysctl -w vm.max_map_count=262144

The container keeps restarting so unable to make and modifications

is there perhaps a enviromental variable I can set

kind regrads

These limits must be adapted on the host OS, see https://crate.io/docs/crate/guide/en/latest/deployment/containers/docker.html#troubleshooting and https://crate.io/docs/crate/guide/en/latest/deployment/containers/docker.html#bootstrap-checks.