mirror of
https://github.com/okxlin/appstore.git
synced 2025-07-13 12:52:18 +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
|
@ -1,14 +1,8 @@
|
||||
# 介绍
|
||||
|
||||
NodeBB 是一款由Node.js开发的、开源的、现代化的论坛程序
|
||||
NodeBB 是一款由 Node.js 开发的、开源的、现代化的论坛程序
|
||||
|
||||
|
||||
## 所使用docker镜像相关:
|
||||
|
||||
> 项目链接
|
||||
>> - https://hub.docker.com/r/elestio/nodebb
|
||||
>> - https://github.com/elestio-examples/nodebb
|
||||
|
||||
## 数据库连接问题
|
||||
|
||||
需要新建数据库再进行安装
|
||||
|
@ -1,19 +1,19 @@
|
||||
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
|
||||
limit: 0
|
||||
website: https://nodebb.org/
|
||||
github: https://github.com/NodeBB/NodeBB
|
||||
document: https://docs.nodebb.org/
|
||||
document: https://docs.nodebb.org/
|
||||
|
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:
|
||||
formFields:
|
||||
- default: 4567
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 应用端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: example.com
|
||||
envKey: DOMAIN
|
||||
labelEn: Allowed_Origins
|
||||
labelZh: 绑定域名
|
||||
required: true
|
||||
rule: paramExtUrl
|
||||
type: text
|
||||
formFields:
|
||||
- default: 40202
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
|
0
apps/nodebb/latest/data/.gitkeep
Normal file
0
apps/nodebb/latest/data/.gitkeep
Normal file
@ -1,22 +1,18 @@
|
||||
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:
|
||||
external: true
|
||||
external: true
|
||||
|
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