FusionAuth/fusionauth-containers

Docker-Compose: .env not working -> max virtual memory areas too low

Closed this issue · 2 comments

Hi,

When i run the docker-compose stack with default parameters,
The Elastic Search Container does not run properly.

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

After changing the .env

ES_JAVA_OPTS=-Xms1024m -Xmx1024m
and
FUSIONAUTH_MEMORY=1024M

It seems to not be reflected by the Elastic Search Container... nothing changes still the same error..

Am i missing something here or is it a bug?

Run on the host:

# Append changes to /etc/sysctl.conf
echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf

# Apply sysctl.conf updates without rebooting
sudo sysctl -p

Works on Ubuntu 18.04.

(please note however that some distributions like Arch only read /etc/sysctl.d/*.conf)

After that, FusionAuth works perfectly.

Read more: https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html

This seems resolved.