From 8f14a6eea147b6824f98b99262e32690a02809de Mon Sep 17 00:00:00 2001 From: maxlath Date: Thu, 27 Feb 2025 20:39:29 +0100 Subject: [PATCH] inventaire: local config: document config overwrites --- inventaire/docker-entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inventaire/docker-entrypoint.sh b/inventaire/docker-entrypoint.sh index 49afbe4..76e1763 100755 --- a/inventaire/docker-entrypoint.sh +++ b/inventaire/docker-entrypoint.sh @@ -4,8 +4,11 @@ set -eu cd /opt/inventaire -# Overwrite the local-${NODE_ENV} config with environment variables every time the container is restarted -cat > "./config/local-${NODE_ENV}.cjs" << EOF +# Overwrites the local config with environment variables every time the container is restarted +# This file can be itself overwritten either by ./config/local-production.cjs (assuming NODE_ENV=production) or by NODE_CONFIG +# See https://github.com/node-config/node-config/wiki/Configuration-Files#file-load-order +# and https://github.com/node-config/node-config/wiki/Environment-Variables#node_config +cat > "./config/local.cjs" << EOF module.exports = { hostname: 'inventaire', port: '${INVENTAIRE_PORT}',