mirror of
https://github.com/okxlin/appstore.git
synced 2025-07-14 05:12:19 +08:00
feat:修改nodebb
This commit is contained in:
parent
935ee0cba0
commit
193b4b8edc
2
apps/nodebb/1.19/.env.sample
Normal file
2
apps/nodebb/1.19/.env.sample
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CONTAINER_NAME="nodebb"
|
||||||
|
PANEL_APP_PORT_HTTP="40202"
|
10
apps/nodebb/1.19/data.yml
Normal file
10
apps/nodebb/1.19/data.yml
Normal 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
|
0
apps/nodebb/1.19/data/.gitkeep
Normal file
0
apps/nodebb/1.19/data/.gitkeep
Normal file
18
apps/nodebb/1.19/docker-compose.yml
Normal file
18
apps/nodebb/1.19/docker-compose.yml
Normal 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
|
3
apps/nodebb/1.19/scripts/init.sh
Normal file
3
apps/nodebb/1.19/scripts/init.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
chmod 777 data
|
@ -3,12 +3,6 @@
|
|||||||
NodeBB 是一款由 Node.js 开发的、开源的、现代化的论坛程序
|
NodeBB 是一款由 Node.js 开发的、开源的、现代化的论坛程序
|
||||||
|
|
||||||
|
|
||||||
## 所使用docker镜像相关:
|
|
||||||
|
|
||||||
> 项目链接
|
|
||||||
>> - https://hub.docker.com/r/elestio/nodebb
|
|
||||||
>> - https://github.com/elestio-examples/nodebb
|
|
||||||
|
|
||||||
## 数据库连接问题
|
## 数据库连接问题
|
||||||
|
|
||||||
需要新建数据库再进行安装
|
需要新建数据库再进行安装
|
||||||
|
@ -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 的现代化论坛程序
|
||||||
|
2
apps/nodebb/latest/.env.sample
Normal file
2
apps/nodebb/latest/.env.sample
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CONTAINER_NAME="nodebb"
|
||||||
|
PANEL_APP_PORT_HTTP="40202"
|
@ -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
|
|
||||||
|
0
apps/nodebb/latest/data/.gitkeep
Normal file
0
apps/nodebb/latest/data/.gitkeep
Normal 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:
|
||||||
|
3
apps/nodebb/latest/scripts/init.sh
Normal file
3
apps/nodebb/latest/scripts/init.sh
Normal 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 |
Loading…
Reference in New Issue
Block a user