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

57 lines
963 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
2018-08-18 21:55:09 +02:00
- /usr/src/nodebb/node_modules
2018-08-25 05:34:33 +02:00
- /usr/src/nodebb/public/uploads
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
2018-08-25 05:34:33 +02:00
>>> ./nodebb upgrade
2017-05-10 10:17:11 +02:00
>>> exit
```
2016-01-16 01:19:42 +02:00
[1]: https://nodebb.org/
2018-08-25 05:34:33 +02:00
[2]: https://docs.nodebb.org/