No longer maintained in favor of https://github.com/NodeBB/docker-builds
Base Docker Image
First, run a Redis instance on your machine. It will automatically expose the
docker run --name my-forum-redis -d dockerfile/redis
Next, launch the NodeBB instance from this repository, so it links with the just-launched Redis instance.
docker run --name my-forum-nodebb --link my-forum-redis:redis -P -t -i nickjanssen/nodebb
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.
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 port
docker ps for more details.
Simply use the
/data volume inside your Redis instance. See the official guide on making backups.