@omega I actually meant "according to the docs".
I am sorry for my crappy English as I am not a native speaker.
Hi all! I spent quite a lot of time to organize an automatic build of a Docker image compatible with persistent storage and k8s.
Now, it seems ready to use, you can check it on Github.
Due to one bug in the NodeBB codebase stable images currently won't run in docker, but beta tag work perfectly.
You can run the test lab using the snippet below.
docker run --name redis -d -p 6379:6379 redis docker run --name nodebb -d -p 4567:4567 \ -v /path/to/data:/data \ -e URL="http://mynodebb.com" \ -e DATABASE="redis" \ -e DB_NAME="0" \ -e DB_HOST="host.docker.internal" \ -e DB_PASSWORD="pass" \ -e DB_PORT="6379" \ nibrev/nodebb:beta
To update NodeBB just delete the container and run with new image version.
Any idea what the difference is between our Dockerfile and the one maintained by @nilsramsperger ?
The difference from official NodeBB Docker image:
In short, realized using docker best practices so the user can easily upgrade the image without data loss and issues.
The difference from the @nilsramsperger image (superficially):
PS. This test instance still alive to test how it works in the k8s.
@rez0n I works great.
But how can I access admin?
There is no information about admin password.
@최우성 HI. As usually, NodeBB automatically generates admin password and echo it to the logs. You can access Docker container logs executing
docker logs nodebb
nodebb - means your container name
@rez0n It's very helpful.
Do you have a docker-composite version of your script?
I'm not very good at it.
Thank you in advance
@rez0n I've just setup a NodeBB instance with the provided docker-compose.yml file from your repository. I've checked the log files at
/usr/src/app/logs in the nodebb image, but can't find any credentials of the admin user in the file
Do you know where I can find the credentials of the created admin account?