diff --git a/apps/halo/versions/2.4.1/README.md b/apps/halo/versions/2.4.1/README.md new file mode 100644 index 00000000..f97627dc --- /dev/null +++ b/apps/halo/versions/2.4.1/README.md @@ -0,0 +1,45 @@ +------------------------------ + +## 快速开始 + +```bash +docker run \ + -it -d \ + --name halo \ + -p 8090:8090 \ + -v ~/.halo2:/root/.halo2 \ + halohub/halo:2.2 \ + --halo.external-url=http://localhost:8090/ \ + --halo.security.initializer.superadminusername=admin \ + --halo.security.initializer.superadminpassword=P@88w0rd +``` + +以上仅作为体验使用,详细部署文档请查阅: + +## 在线体验 + +- 环境地址: +- 后台地址: +- 用户名:`demo` +- 密码:`P@ssw0rd123..` + +## 生态 + +可访问 [awesome-halo](https://github.com/halo-sigs/awesome-halo) 查看已经适用于 Halo 2.0 的主题和插件,以及适用于 Halo +1.x 的相关仓库。 + +## 许可证 + +[![license](https://img.shields.io/github/license/halo-dev/halo.svg?style=flat-square)](https://github.com/halo-dev/halo/blob/master/LICENSE) + +Halo 使用 GPL-v3.0 协议开源,请遵守开源协议。 + +## 贡献 + +参考 [CONTRIBUTING](https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md)。 + + + +## 状态 + +![Repobeats analytics](https://repobeats.axiom.co/api/embed/ad008b2151c22e7cf734d2688befaa795d593b95.svg "Repobeats analytics image") diff --git a/apps/halo/versions/2.4.1/config.json b/apps/halo/versions/2.4.1/config.json new file mode 100644 index 00000000..47ec17ac --- /dev/null +++ b/apps/halo/versions/2.4.1/config.json @@ -0,0 +1,107 @@ +{ + "formFields": [ + { + "type": "apps", + "labelZh": "数据库服务", + "labelEn": "Database Service", + "required": true, + "default": "mysql", + "values": [{ + "label": "MySQL", + "value": "mysql" + }], + "envKey": "HALO_PLATFORM", + "child": { + "type": "service", + "labelZh": "数据库服务", + "labelEn": "Database Service", + "required": true, + "default": "", + "envKey": "PANEL_DB_HOST" + }, + "params": [ + { + "type": "param", + "key": "mysql", + "value": "3306", + "envKey": "HALO_DB_PORT" + }, + { + "type": "param", + "key": "postgresql", + "value": "5432", + "envKey": "HALO_DB_PORT" + } + ] + }, + { + "type": "text", + "labelZh": "数据库名", + "labelEn": "Database", + "required": true, + "default": "halo", + "random": true, + "rule": "paramCommon", + "envKey": "PANEL_DB_NAME" + }, + { + "type": "text", + "labelZh": "数据库用户", + "labelEn": "User", + "required": true, + "default": "halo", + "random": true, + "rule": "paramCommon", + "envKey": "PANEL_DB_USER" + }, + { + "type": "password", + "labelZh": "数据库用户密码", + "labelEn": "Password", + "required": true, + "default": "halo", + "random": true, + "rule": "paramComplexity", + "envKey": "PANEL_DB_USER_PASSWORD" + }, + { + "type": "text", + "labelZh": "超级管理员用户名", + "labelEn": "Admin Username", + "required": true, + "default": "admin", + "rule": "paramCommon", + "envKey": "HALO_ADMIN" + }, + { + "type": "password", + "labelZh": "超级管理员密码", + "labelEn": "Admin Password", + "required": true, + "default": "halo", + "random": true, + "rule": "paramComplexity", + "envKey": "HALO_ADMIN_PASSWORD" + }, + { + "type": "text", + "labelZh": "外部访问地址", + "labelEn": "External URL", + "required": true, + "default": "http://localhost:8080", + "rule": "paramExtUrl", + "envKey": "HALO_EXTERNAL_URL", + "edit": true + }, + { + "type": "number", + "labelZh": "端口", + "labelEn": "Port", + "required": true, + "default": 8080, + "rule": "paramPort", + "envKey": "PANEL_APP_PORT_HTTP", + "edit": true + } + ] +} \ No newline at end of file diff --git a/apps/halo/versions/2.4.1/docker-compose.yml b/apps/halo/versions/2.4.1/docker-compose.yml new file mode 100644 index 00000000..d8e4e8c6 --- /dev/null +++ b/apps/halo/versions/2.4.1/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3" +services: + halo: + image: halohub/halo:2.4.1 + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + volumes: + - ./data:/root/.halo2 + ports: + - ${PANEL_APP_PORT_HTTP}:8090 + healthcheck: + test: [ "CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness" ] + interval: 30s + timeout: 5s + retries: 5 + start_period: 30s + command: + - --spring.r2dbc.url=r2dbc:pool:${HALO_PLATFORM}://${PANEL_DB_HOST}:${HALO_DB_PORT}/${PANEL_DB_NAME} + - --spring.r2dbc.username=${PANEL_DB_USER} + - --spring.r2dbc.password=${PANEL_DB_USER_PASSWORD} + - --spring.sql.init.platform=${HALO_PLATFORM} + - --halo.external-url=${HALO_EXTERNAL_URL} + - --halo.security.initializer.superadminusername=${HALO_ADMIN} + - --halo.security.initializer.superadminpassword=${HALO_ADMIN_PASSWORD} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/list.json b/apps/list.json index 76db9c0d..98eac0f2 100644 --- a/apps/list.json +++ b/apps/list.json @@ -90,7 +90,7 @@ "key": "halo", "name": "Halo", "tags": ["WebSite"], - "versions": ["2.2.0","2.3.2"], + "versions": ["2.2.0","2.3.2","2.4.1"], "shortDescZh": "强大易用的开源建站工具", "shortDescEn": "Powerful and easy-to-use open source website builder", "type": "website",