Skip to content

Commit 637460e

Browse files
committed
feat: limit the memory of elasticsearch
1 parent 2f9a0d3 commit 637460e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elasticsearch/docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ services:
2121
- "${ELASTICSEARCH_HOST_TCP_PORT}:${ELASTICSEARCH_CONTAINER_TCP_PORT}"
2222
networks:
2323
- backend
24+
deploy:
25+
resources:
26+
limits:
27+
memory: 2G # ES takes up too much memory, so limit it.
2428
# only for debug
2529
# command: "tail -f /dev/null"

0 commit comments

Comments
 (0)