add resource limits for elastic
This commit is contained in:
parent
90c6ab377b
commit
e3653f51ed
|
@ -34,6 +34,12 @@ services:
|
||||||
- discovery.type=single-node
|
- discovery.type=single-node
|
||||||
volumes:
|
volumes:
|
||||||
- elasticsearch-data:/usr/share/elasticsearch/data
|
- elasticsearch-data:/usr/share/elasticsearch/data
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 4G
|
||||||
|
reservations:
|
||||||
|
memory: 2G
|
||||||
|
|
||||||
zammad-init:
|
zammad-init:
|
||||||
image: zammad/zammad-docker-compose:zammad-5.1.1-11
|
image: zammad/zammad-docker-compose:zammad-5.1.1-11
|
||||||
|
@ -55,7 +61,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- zammad-data:/opt/zammad
|
- zammad-data:/opt/zammad
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
zammad-memcached:
|
zammad-memcached:
|
||||||
|
|
Loading…
Reference in New Issue