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