mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-07 13:42:50 +02:00
update nodebb
This commit is contained in:
parent
952136400f
commit
82e98b0d3f
@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
EXPOSE 4567
|
||||
CMD ["npm", "start"]
|
||||
CMD ["./nodebb", "start"]
|
||||
|
@ -20,6 +20,7 @@ nodebb:
|
||||
- ./data:/var/lib/nodebb
|
||||
- /usr/src/nodebb/build
|
||||
- /usr/src/nodebb/node_modules
|
||||
- /usr/src/nodebb/public/uploads
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
@ -47,9 +48,9 @@ $ firefox http://localhost:4567
|
||||
```bash
|
||||
$ docker-compose pull nodebb
|
||||
$ docker-compose exec nodebb sh
|
||||
>>> ./nodebb build
|
||||
>>> ./nodebb upgrade
|
||||
>>> exit
|
||||
```
|
||||
|
||||
[1]: https://nodebb.org/
|
||||
[2]: https://docs.nodebb.org/en/latest/
|
||||
[2]: https://docs.nodebb.org/
|
||||
|
@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
EXPOSE 4567
|
||||
CMD ["npm", "start"]
|
||||
CMD ["./nodebb", "start"]
|
||||
|
@ -8,6 +8,7 @@ nodebb:
|
||||
- ./data:/var/lib/nodebb
|
||||
- /usr/src/nodebb/build
|
||||
- /usr/src/nodebb/node_modules
|
||||
- /usr/src/nodebb/public/uploads
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
|
@ -5,7 +5,7 @@ export NODE_ENV=production
|
||||
export silent=false
|
||||
export daemon=false
|
||||
|
||||
if [[ "$*" == npm*start* ]]; then
|
||||
if [[ "$*" == ./nodebb*start* ]]; then
|
||||
if [ ! -e "$BB_CONTENT/config.json" ]; then
|
||||
if [ -e "$BB_SOURCE/config.json" ]; then
|
||||
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
|
||||
|
@ -8,6 +8,7 @@ nodebb:
|
||||
- ./data:/var/lib/nodebb
|
||||
- /usr/src/nodebb/build
|
||||
- /usr/src/nodebb/node_modules
|
||||
- /usr/src/nodebb/public/uploads
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
|
@ -5,7 +5,7 @@ export NODE_ENV=production
|
||||
export silent=false
|
||||
export daemon=false
|
||||
|
||||
if [[ "$*" == npm*start* ]]; then
|
||||
if [[ "$*" == ./nodebb*start* ]]; then
|
||||
if [ ! -e "$BB_CONTENT/config.json" ]; then
|
||||
if [ -e "$BB_SOURCE/config.json" ]; then
|
||||
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
|
||||
|
Loading…
x
Reference in New Issue
Block a user