Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ 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/flows.json:/data/flows.json
- ./${SAMPLE_APP}/src/node-red/flows_cred.json:/data/flows_cred.json
- ./${SAMPLE_APP}/src/node-red/settings.js:/data/settings.js
- ./${SAMPLE_APP}/src/node-red/install_package.sh:/data/install_package.sh
- node-red-node-modules:/data/node_modules
secrets:
- influxdb2-admin-token
- root-cert
Expand All @@ -75,11 +76,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 @@ -398,3 +396,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:
Loading