Docker-compose: run several scripts in node.js container


how would you accomplish this:

Set up a docker-compose file where i’d like to use the official node.js image to run several js scripts (so to start periodicly)

Where would you configure that the scripts will start on container start and that some scripts run every x minutes?

Thanks for your ideas.