Hosting on Azure Web Apps for containers

I’m trying to setup the node red docker image in Azure Web Apps for containers but I can't get the /data directory mounted to the /home directory for data persistence.

I have tried to use the modified image from https://wp.sjkp.dk/running-node-red-docker-container-on-azure-web-app/ and this works, but I think it should be possible to use the standard and latest node red docker image and add the startup command parameter -v /home/data:/data when setting up the container in Azure.

Have anyone succeeded to setup this?

/Jonas

I solved it by using Docker Compose:

services:
nodered:
container_name: node-RED
image: nodered/node-red:latest
volumes:
- ${WEBAPP_STORAGE_HOME}/node-red:/data
ports:
- "1880:1880"
restart: always

1 Like