1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nodebb/README.md

55 lines
899 B
Markdown
Raw Normal View History

2016-01-16 01:19:42 +02:00
nodebb
======
![](https://badge.imagelayers.io/vimagick/nodebb:latest.svg)
[NodeBB][1] Forum Software is powered by Node.js and built on either a Redis or MongoDB database.
2017-05-10 10:17:11 +02:00
Read the [docs][2].
2016-01-16 01:19:42 +02:00
## docker-compose.yml
2017-05-10 10:17:11 +02:00
```yaml
2016-01-16 01:19:42 +02:00
nodebb:
image: vimagick/nodebb
ports:
- "4567:4567"
links:
- redis
2017-05-10 10:17:11 +02:00
volumes:
- ./data:/var/lib/nodebb
2017-05-10 11:51:40 +02:00
- /usr/src/nodebb/build
2016-01-16 01:19:42 +02:00
restart: always
redis:
2017-05-10 10:41:30 +02:00
image: redis:alpine
2016-01-16 01:19:42 +02:00
ports:
- "127.0.0.1:6379:6379"
2017-05-10 10:17:11 +02:00
volumes:
- ./data:/data
2016-01-16 01:19:42 +02:00
restart: always
```
## up and running
2017-05-10 10:17:11 +02:00
```bash
2016-01-16 01:19:42 +02:00
$ docker-compose up -d
2017-05-10 10:17:11 +02:00
$ vim data/config.json
$ docker-compose restart nodebb
2016-01-16 01:19:42 +02:00
$ firefox http://localhost:4567
```
2016-01-16 06:27:53 +02:00
> Host IP or address of your Redis instance: `redis`
2016-01-16 06:07:47 +02:00
2017-05-10 10:17:11 +02:00
## software upgrade
```bash
$ docker-compose pull nodebb
$ docker-compose exec nodebb sh
>>> ./nodebb build
>>> exit
```
2016-01-16 01:19:42 +02:00
[1]: https://nodebb.org/
2017-05-10 10:17:11 +02:00
[2]: https://docs.nodebb.org/en/latest/