Skip to content

Commit b25dc08

Browse files
committed
set mem and cpu in compose file
1 parent b60ce87 commit b25dc08

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
### Freebird specific
44
* Elasticsearch ONLY
5-
* This app has cpu and memory requirements: `convox scale elasticsearch --memory=2048 --cpu=2048`
5+
* This app has cpu and memory requirements which are set in `docker-compose.yml`
6+
* This app requires an update to the host system's `vm.max_map_count`. If it's not already set, `convox rack params set 'InstanceBootCommand="sysctl -w vm.max_map_count=262144"'``
67

78
---
89

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ version: 2
22
services:
33
elasticsearch:
44
build: .
5+
cpu_shares: 2048
6+
mem_limit: 2048MB
57
ports:
68
- 9200
79
volumes:

0 commit comments

Comments
 (0)