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

This commit is contained in:
hygienic-books 2023-12-24 01:30:49 +01:00
parent 36f2eecba1
commit 215db1682d
3 changed files with 15 additions and 15 deletions
docker-compose
examples
grafana
hashicorpvault
{{ cookiecutter.__project_slug }}

@ -10,10 +10,10 @@ services:
nginx:
condition: service_healthy
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
@ -42,10 +42,10 @@ services:
retries: 60
start_period: 2s
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

@ -6,10 +6,10 @@ services:
networks:
vault-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

@ -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