Added CPU and memoty limits
This commit is contained in:
parent
24d69d8d66
commit
58d4ca0cf7
|
@ -267,6 +267,13 @@
|
|||
network_mode: "{{ item.value.network_mode | default ('default') }}"
|
||||
shm_size: "{{ item.value.shm_size | default ('64M') }}"
|
||||
ports: "{{ item.value.ports | default ([]) }}"
|
||||
cpu_period: "{{ item.value.cpu_period | default(0) }}"
|
||||
cpu_quota: "{{ item.value.cpu_quota | default(0) }}"
|
||||
cpu_shares: "{{ item.value.cpu_shares | default(0) }}"
|
||||
cpus: "{{ item.value.cpus | default(0) }}"
|
||||
cpuset_cpus: "{{ item.value.cpuset_cpus | default('') }}"
|
||||
mem_limit: "{{ item.value.mem_limit | default(0) }}"
|
||||
mem_reservation: "{{ item.value.mem_reservation | default(0) }}"
|
||||
#log_driver: fluentd
|
||||
#"{{item.value.ports | default ([json-file])}}"
|
||||
#log_options:
|
||||
|
|
Loading…
Reference in New Issue