NodeBB is built with nodejs, and is made to be fast and powerful. For your convenience, we currently offer CentOS and Ubuntu builds.
You can view our official builds on Docker Hub Registry as well.
To get started with running NodeBB using Docker, you will want to run a redis instance.
docker run --name my-forum-redis -d -p 6379:6379 nodebb/docker:centos-redis
docker run --name my-forum-redis -d -p 6379:6379 nodebb/docker:ubuntu-redis
Next, launch the NodeBB instance, so it links with the just-launched Redis instance.
docker run --name dockerdev-nodebb --link dockerdev-redis:redis -p 80:80 -p 443:443 -p 4567:4567 -P -t -i nodebb/docker:centos
docker run --name dockerdev-nodebb --link dockerdev-redis:redis -p 80:80 -p 443:443 -p 4567:4567 -P -t -i nodebb/docker:ubuntu
You will be asked to configure your NodeBB instance, as no config file was found. Simply press enter for all settings except Redis hostname, which should be redis
as it is linked using the --linked
parameter to our Redis instance, and the administrator username, e-mail and password.
The default port of nodebb is 4567. Ports 80, and 443 have also been exposed for your convenience. You can keep the default nodebb port or change it.
NodeBB will launch the setup and automatically close. Next, simply start the instance again. It will this time find a config file and start as a daemon.
docker start my-forum-nodebb
Your NodeBB instance will be accessible on the port you selected during setup. Check docker ps
for more details.
Simply use the /data
volume inside your Redis instance. See the official guide on making backups.