feat:修改nodebb

This commit is contained in:
okxlin 2024-03-14 14:40:05 +08:00
parent 935ee0cba0
commit 193b4b8edc
13 changed files with 61 additions and 40 deletions

View File

@ -0,0 +1,2 @@
CONTAINER_NAME="nodebb"
PANEL_APP_PORT_HTTP="40202"

10
apps/nodebb/1.19/data.yml Normal file
View File

@ -0,0 +1,10 @@
additionalProperties:
formFields:
- default: 40202
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

View File

@ -0,0 +1,18 @@
version: "3.8"
services:
nodebb:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:4567"
volumes:
- ./data:/usr/src/app/public/uploads
image: nodebb/docker:1.19
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -0,0 +1,3 @@
#!/bin/bash
chmod 777 data

View File

@ -1,14 +1,8 @@
# 介绍
NodeBB 是一款由Node.js开发的、开源的、现代化的论坛程序
NodeBB 是一款由 Node.js 开发的、开源的、现代化的论坛程序
## 所使用docker镜像相关:
> 项目链接
>> - https://hub.docker.com/r/elestio/nodebb
>> - https://github.com/elestio-examples/nodebb
## 数据库连接问题
需要新建数据库再进行安装

View File

@ -1,15 +1,15 @@
name: NodeBB
tags:
- 建站
title: 基于Node.js的现代化论坛程序
title: 基于 Node.js 的现代化论坛程序
type: 建站
description: 基于Node.js的现代化论坛程序
description: 基于 Node.js 的现代化论坛程序
additionalProperties:
key: nodebb
name: nodebb
name: NodeBB
tags:
- WebSite
shortDescZh: 基于Node.js的现代化论坛程序
shortDescZh: 基于 Node.js 的现代化论坛程序
shortDescEn: Open source Forum Powered by Node.js
type: website
crossVersionUpdate: true

View File

@ -0,0 +1,2 @@
CONTAINER_NAME="nodebb"
PANEL_APP_PORT_HTTP="40202"

View File

@ -1,17 +1,10 @@
additionalProperties:
formFields:
- default: 4567
- default: 40202
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 应用端口
labelZh: 端口
required: true
rule: paramPort
type: number
- default: example.com
envKey: DOMAIN
labelEn: Allowed_Origins
labelZh: 绑定域名
required: true
rule: paramExtUrl
type: text

View File

View File

@ -1,21 +1,17 @@
version: "3.3"
version: "3.8"
services:
nodebb:
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:4567"
user: 0:0
image: elestio/nodebb:latest
restart: always
networks:
- 1panel-network
environment:
URL: "https://${DOMAIN}"
ports:
- "${PANEL_APP_PORT_HTTP}:4567"
volumes:
- ./nodebb-files:/usr/src/app/public/uploads
# - ./nodebb-config/config.json:/usr/src/app/config.json
- ./entrypoint.sh:/usr/src/app/entrypoint.sh
- ./data:/usr/src/app/public/uploads
image: nodebb/docker:latest
labels:
createdBy: "Apps"
networks:
1panel-network:

View File

@ -0,0 +1,3 @@
#!/bin/bash
chmod 777 data

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB