Node-red, docker, compose and auto update

i have node-red on docker via compose.
i have watchtower running for the updates.
now there has been an update for node-red and all flows are gone, but also the tamplets.
how can I avoid this now, don't want to set the flow every time?

version: "3.7"
services:

#node-red
  node-red:
    container_name: Node-red
    image: nodered/node-red
    volumes:
      - /home/pi/docker/config/node-red:/opt/node-red/data"
      - /home/pi/docker/config/node-red:/config
    user: "0"
    network_mode: host
    restart: unless-stopped    

All of the user data is stored under /data - you should add a volume for that path.

I changed it to the example with my own path.
Thank you.
Let you know if it worked.

#node-red
  node-red:
    container_name: Node-red
    image: nodered/node-red
    volumes:
      - /home/pi/docker/config/node-red/data:/data
    user: "0"
    network_mode: host
    restart: unless-stopped