Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ services:
networks:
- scenescape
volumes:
- ./${SAMPLE_APP}/src/node-red/flows.json:/tmp/flows.json
- ./${SAMPLE_APP}/src/node-red/flows_cred.json:/tmp/flows_cred.json
- ./${SAMPLE_APP}/src/node-red/settings.js:/tmp/settings.js
- ./${SAMPLE_APP}/src/node-red/install_package.sh:/tmp/install_package.sh
- ./${SAMPLE_APP}/src/node-red:/data
- node-red-node-modules:/data/node_modules
secrets:
- influxdb2-admin-token
- root-cert
Expand All @@ -75,11 +73,8 @@ services:
"/bin/bash",
"-e",
"-c",
"cp /tmp/flows.json /data/flows.json && \
cp /tmp/settings.js /data/settings.js && \
cp /tmp/flows_cred.json /data/flows_cred.json && \
sed -i \"s/<influx-api-token>/$(cat /run/secrets/influxdb2-admin-token)/g\" /data/flows_cred.json && \
bash /tmp/install_package.sh && \
"sed -i \"s/<influx-api-token>/$(cat /run/secrets/influxdb2-admin-token)/g\" /data/flows_cred.json && \
bash /data/install_package.sh && \
/usr/src/node-red/entrypoint.sh",
]
restart: on-failure:5
Expand Down Expand Up @@ -167,9 +162,9 @@ services:
devices:
- "/dev/dri:/dev/dri"
device_cgroup_rules:
- 'c 189:* rmw'
- 'c 209:* rmw'
- 'a 189:* rwm'
- "c 189:* rmw"
- "c 209:* rmw"
- "a 189:* rwm"
Comment on lines +169 to +171
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The quote style change from single quotes to double quotes is inconsistent with the stated purpose of this PR (persisting node modules). This appears to be an unrelated formatting change that should either be part of a separate PR or explained in the description.

Copilot uses AI. Check for mistakes.
group_add:
- "109"
- "110"
Expand Down Expand Up @@ -398,3 +393,4 @@ volumes:
pgserver-db:
pgserver-migrations:
pgserver-media:
node-red-node-modules:
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ services:
volumes:
- "./${SAMPLE_APP}/src/node-red:/data"
- "./${SAMPLE_APP}/src/dlstreamer-pipeline-server/videos:/data/public/videos"
- node-red-node-modules:/data/node_modules
ipc: "none"
entrypoint: [ "/bin/bash", "-c", "/data/install_package.sh && /usr/src/node-red/entrypoint.sh" ]
user: root
Expand Down Expand Up @@ -188,3 +189,4 @@ volumes:
device: tmpfs
prometheus_data:
driver: local
node-red-node-modules: