refactor(docker-compose): Set default ulimits even when var is set (but set to just an empty string)

This commit is contained in:
2023-12-24 01:30:49 +01:00
parent 36f2eecba1
commit 215db1682d
3 changed files with 15 additions and 15 deletions

View File

@@ -31,10 +31,10 @@ services:
start_period: 2s
{%- endif %}
ulimits:
nproc: ${ULIMIT_NPROC-65535}
nproc: ${ULIMIT_NPROC:-65535}
nofile:
soft: ${ULIMIT_NPROC-65535}
hard: ${ULIMIT_NPROC-65535}
soft: ${ULIMIT_NPROC:-65535}
hard: ${ULIMIT_NPROC:-65535}
extends:
file: common-settings.yaml
service: common-settings
@@ -58,10 +58,10 @@ services:
networks:
{{ cookiecutter.__service_slug }}-default:
ulimits:
nproc: ${ULIMIT_NPROC-65535}
nproc: ${ULIMIT_NPROC:-65535}
nofile:
soft: ${ULIMIT_NPROC-65535}
hard: ${ULIMIT_NPROC-65535}
soft: ${ULIMIT_NPROC:-65535}
hard: ${ULIMIT_NPROC:-65535}
extends:
file: common-settings.yaml
service: common-settings