You can remap the user with the following iirc:
version: "3"
services:
nodered:
container_name: nodered
image: nodered/node-red:latest
user: "uid:gid"
restart: always
environment:
- TZ=Asia/Kolkata
ports:
- "1880:1880"
networks:
- public
volumes:
- "/mnt/external/nr-personal:/data"
volumes:
nr-personal:
networks:
public:
where uid
and gid
are the numerical id's on the host system that has access to the volume.