docs(docker-compose): Add a sane ulimits example
This commit is contained in:
parent
79dc452799
commit
5645fba3e1
@ -29,6 +29,11 @@ services:
|
|||||||
retries: 60
|
retries: 60
|
||||||
start_period: 2s
|
start_period: 2s
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
ulimits:
|
||||||
|
nproc: ${ULIMIT_NPROC-65535}
|
||||||
|
nofile:
|
||||||
|
soft: ${ULIMIT_NPROC-65535}
|
||||||
|
hard: ${ULIMIT_NPROC-65535}
|
||||||
extends:
|
extends:
|
||||||
file: common-settings.yml
|
file: common-settings.yml
|
||||||
service: common-settings
|
service: common-settings
|
||||||
@ -50,6 +55,11 @@ services:
|
|||||||
container_name: "{{ cookiecutter.__service_slug }}-${CONTEXT}"
|
container_name: "{{ cookiecutter.__service_slug }}-${CONTEXT}"
|
||||||
networks:
|
networks:
|
||||||
{{ cookiecutter.__service_slug }}-default:
|
{{ cookiecutter.__service_slug }}-default:
|
||||||
|
ulimits:
|
||||||
|
nproc: ${ULIMIT_NPROC-65535}
|
||||||
|
nofile:
|
||||||
|
soft: ${ULIMIT_NPROC-65535}
|
||||||
|
hard: ${ULIMIT_NPROC-65535}
|
||||||
extends:
|
extends:
|
||||||
file: common-settings.yml
|
file: common-settings.yml
|
||||||
service: common-settings
|
service: common-settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user