Hi @Yuji09,
I'm not a Docker specialist either ...
But the Docker compose yml file describes a container in its running state, while the DockerFile describes how to build the container.
In that DockerFile you can specify an ENTRYPOINT, which is like a startup command (with parameters):
ENTRYPOINT ["executable", "param1", "param2"]
On Stackoverflow you can find this example to start NPM:
ENTRYPOINT ["/usr/local/bin/npm", "run"]
So I assume you can use the entrypoint to pass all the stuff that I pass via the "docker run" command.
But you will need to read about it and experiment.
Or perhaps wait until @RaymondMouthaan has time to update the official Node-RED image ...
Good luck with it!
Bart