Docker ffmpeg nginx rtmp image fails to record livestream

building a react native app that recieves an RTMP stream and then records the stream and i am using a docker container that executes an ffmpeg command to record the livestream https://github.com/danielgormly/nginx-rtmp-ffmpeg-docker. I also have ffmpeg installed on my computer and if i start livestream and run the ffmpeg or rtmpdump command in the terminal it records the stream but somehow the recording fails to record automatically even though there is an ffmpeg exec command on the nginx config file along with a path

Source: Docker Questions