Refactor memory limit configuration for Elasticsearch service; move to deploy resources section

This commit is contained in:
Dmitriy Kazimirov 2025-04-06 13:34:12 +00:00
parent 2eb04397e5
commit ee6a1b21c7

View file

@ -41,7 +41,11 @@ services:
- ES_JAVA_OPTS=-Xms6g -Xmx6g
- bootstrap.memory_lock=true
restart: unless-stopped
mem_limit: 8g
deploy:
resources:
limits:
memory: 8g
ulimits:
memlock:
soft: -1