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

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

View File

@ -6,7 +6,7 @@ type: 建站
description: 基于 Node.js 的现代化论坛程序 description: 基于 Node.js 的现代化论坛程序
additionalProperties: additionalProperties:
key: nodebb key: nodebb
name: nodebb name: NodeBB
tags: tags:
- WebSite - WebSite
shortDescZh: 基于 Node.js 的现代化论坛程序 shortDescZh: 基于 Node.js 的现代化论坛程序

View File

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

View File

@ -1,17 +1,10 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: 4567 - default: 40202
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTP
labelEn: Port labelEn: Port
labelZh: 应用端口 labelZh: 端口
required: true required: true
rule: paramPort rule: paramPort
type: number 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: services:
nodebb: nodebb:
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:4567"
user: 0:0
image: elestio/nodebb:latest
restart: always restart: always
networks: networks:
- 1panel-network - 1panel-network
environment: ports:
URL: "https://${DOMAIN}" - "${PANEL_APP_PORT_HTTP}:4567"
volumes: volumes:
- ./nodebb-files:/usr/src/app/public/uploads - ./data:/usr/src/app/public/uploads
# - ./nodebb-config/config.json:/usr/src/app/config.json image: nodebb/docker:latest
- ./entrypoint.sh:/usr/src/app/entrypoint.sh labels:
createdBy: "Apps"
networks: networks:
1panel-network: 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