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

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