diff --git a/apps/discussion/1.0.4/.env.sample b/apps/discussion/1.0.4/.env.sample new file mode 100644 index 00000000..73f68854 --- /dev/null +++ b/apps/discussion/1.0.4/.env.sample @@ -0,0 +1,9 @@ +CONTAINER_NAME="discussion" +PANEL_APP_PORT_HTTP="40254" +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="discussion_123" +PANEL_DB_PORT=5432 +PANEL_DB_TYPE="postgresql" +PANEL_DB_USER="discussion_123" +PANEL_DB_USER_PASSWORD="discussion_123" diff --git a/apps/discussion/1.0.4/data.yml b/apps/discussion/1.0.4/data.yml new file mode 100644 index 00000000..302d36d4 --- /dev/null +++ b/apps/discussion/1.0.4/data.yml @@ -0,0 +1,48 @@ +additionalProperties: + formFields: + - default: 40254 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + default: postgresql + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + required: true + type: apps + values: + - label: PostgreSQL + value: postgresql + - default: discussion + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: discussion + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: discussion + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password diff --git a/apps/discussion/1.0.4/docker-compose.yml b/apps/discussion/1.0.4/docker-compose.yml new file mode 100644 index 00000000..fd7a8c73 --- /dev/null +++ b/apps/discussion/1.0.4/docker-compose.yml @@ -0,0 +1,17 @@ +services: + discussion: + image: "kingwrcy/discussion:1.0.4" + container_name: ${CONTAINER_NAME} + restart: always + ports: + - "${PANEL_APP_PORT_HTTP}:3000" + environment: + DATABASE_URL: "postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}" + networks: + - 1panel-network + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/discussion/README.md b/apps/discussion/README.md new file mode 100644 index 00000000..141d5ba3 --- /dev/null +++ b/apps/discussion/README.md @@ -0,0 +1,17 @@ +# 极简论坛 + +[![docker pull](https://img.shields.io/docker/pulls/kingwrcy/discussion)](https://hub.docker.com/repository/docker/kingwrcy/discussion) + +[在线demo](https://discussion.mblog.club) + +本项目基于Nuxt3+PostgresSQL开发而成,保持极简,所以注定功能不会过多. +基本的功能目前都有了,欢迎pr,添加你觉得常用/有用的功能. + +适合小范围部署自用. + + +## 使用说明 + +- 首个注册用户为管理员用户 + +- 必须要用`https`方式才能正确登录 \ No newline at end of file diff --git a/apps/discussion/data.yml b/apps/discussion/data.yml new file mode 100644 index 00000000..fe29fde6 --- /dev/null +++ b/apps/discussion/data.yml @@ -0,0 +1,19 @@ +name: Discussion +tags: + - 建站 +title: 极简论坛 +description: 极简论坛 +additionalProperties: + key: discussion + name: Discussion + tags: + - WebSite + shortDescZh: 极简论坛 + shortDescEn: Minimalist forum + type: website + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://discussion.mblog.club + github: https://github.com/kingwrcy/discussion + document: https://github.com/kingwrcy/discussion diff --git a/apps/discussion/latest/.env.sample b/apps/discussion/latest/.env.sample new file mode 100644 index 00000000..73f68854 --- /dev/null +++ b/apps/discussion/latest/.env.sample @@ -0,0 +1,9 @@ +CONTAINER_NAME="discussion" +PANEL_APP_PORT_HTTP="40254" +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="discussion_123" +PANEL_DB_PORT=5432 +PANEL_DB_TYPE="postgresql" +PANEL_DB_USER="discussion_123" +PANEL_DB_USER_PASSWORD="discussion_123" diff --git a/apps/discussion/latest/data.yml b/apps/discussion/latest/data.yml new file mode 100644 index 00000000..302d36d4 --- /dev/null +++ b/apps/discussion/latest/data.yml @@ -0,0 +1,48 @@ +additionalProperties: + formFields: + - default: 40254 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + default: postgresql + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + required: true + type: apps + values: + - label: PostgreSQL + value: postgresql + - default: discussion + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: discussion + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: discussion + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password diff --git a/apps/discussion/latest/docker-compose.yml b/apps/discussion/latest/docker-compose.yml new file mode 100644 index 00000000..25fac26e --- /dev/null +++ b/apps/discussion/latest/docker-compose.yml @@ -0,0 +1,17 @@ +services: + discussion: + image: "kingwrcy/discussion:latest" + container_name: ${CONTAINER_NAME} + restart: always + ports: + - "${PANEL_APP_PORT_HTTP}:3000" + environment: + DATABASE_URL: "postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}" + networks: + - 1panel-network + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/discussion/logo.png b/apps/discussion/logo.png new file mode 100644 index 00000000..9cec3e62 Binary files /dev/null and b/apps/discussion/logo.png differ