Skip to content

Commit

Permalink
fix(nodered): docker config causes healthcheck problems
Browse files Browse the repository at this point in the history
The container health-check script for node-red relies on the
`settings.js` to exist in the `/data/settings.js` directory
in the container. Refactor by mounting the file as readonly
into the container.

fixes #100

Signed-off-by: Shantanoo 'Shan' Desai <[email protected]>
  • Loading branch information
shantanoo-desai committed Jul 27, 2023
1 parent c72947d commit 6d1f4d8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions templates/services/docker-compose.nodered.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 6d1f4d8

Please sign in to comment.