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