You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-17 01:22:25 +02:00
update nodebb
This commit is contained in:
@ -5,31 +5,49 @@ nodebb
|
|||||||
|
|
||||||
[NodeBB][1] Forum Software is powered by Node.js and built on either a Redis or MongoDB database.
|
[NodeBB][1] Forum Software is powered by Node.js and built on either a Redis or MongoDB database.
|
||||||
|
|
||||||
|
Read the [docs][2].
|
||||||
|
|
||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
nodebb:
|
nodebb:
|
||||||
image: vimagick/nodebb
|
image: vimagick/nodebb
|
||||||
ports:
|
ports:
|
||||||
- "4567:4567"
|
- "4567:4567"
|
||||||
links:
|
links:
|
||||||
- redis
|
- redis
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/nodebb
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:6379:6379"
|
- "127.0.0.1:6379:6379"
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
$ vim data/config.json
|
||||||
|
$ docker-compose restart nodebb
|
||||||
$ firefox http://localhost:4567
|
$ firefox http://localhost:4567
|
||||||
```
|
```
|
||||||
|
|
||||||
> Host IP or address of your Redis instance: `redis`
|
> Host IP or address of your Redis instance: `redis`
|
||||||
|
|
||||||
|
## software upgrade
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose pull nodebb
|
||||||
|
$ docker-compose exec nodebb sh
|
||||||
|
>>> ./nodebb build
|
||||||
|
>>> exit
|
||||||
|
```
|
||||||
|
|
||||||
[1]: https://nodebb.org/
|
[1]: https://nodebb.org/
|
||||||
|
[2]: https://docs.nodebb.org/en/latest/
|
||||||
|
@ -4,6 +4,8 @@ nodebb:
|
|||||||
- "4567:4567"
|
- "4567:4567"
|
||||||
links:
|
links:
|
||||||
- redis
|
- redis
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/nodebb
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
|
Reference in New Issue
Block a user