At first you need to clone the reposetory:
git clone https://github.com/NodeBB/NodeBB.git
Go to NodeBB and chmod and chown the Docker dir.
chown -R 1001:1001 .docker
chmod -R 755 .docker
Start Building Nodebb with:
docker compose --profile mongo up -d
you can also use redis or postgres as Database.
Greetings