Closed shantanoo-desai closed 1 year ago
diff --git a/templates/services/docker-compose.nodered.yml.j2 b/templates/services/docker-compose.nodered.yml.j2
index 764d5ad..7e1a622 100644
--- a/templates/services/docker-compose.nodered.yml.j2
+++ b/templates/services/docker-compose.nodered.yml.j2
@@ -28,9 +28,6 @@ services:
image: docker.io/nodered/node-red:{{ komponist.configuration.nodered.version | default('latest') }}
{% endif %}
container_name: komponist_nodered
- configs:
- - nodered_settings
- entrypoint: node-red -s /nodered_settings
logging:
options:
max-size: "5m"
@@ -42,14 +39,11 @@ services:
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
+ - ./nodered/settings.js:/data/settings.js:ro
{% if komponist.data_persistence | default(false) %}
- nodered:/data
volumes:
nodered:
-{% endif %}
-
-configs:
- nodered_settings:
- file: ./nodered/settings.js
\ No newline at end of file
+{% endif %}
\ No newline at end of file
Description
upon
docker inspect -f "{{json .State.Health }}" | jq "."
the node-RED container performs health checks where it requires the/data/settings.js
. The is based on thehealthcheck.js
which requires the/data/settings.js
file. This however does not break the functionality and the container, but in order to mitigate any future crashes, revert to mounting thesettings.js
file to the/data
directory with read-only permissionsLogs