diff --git a/apps/halo/config.json b/apps/halo/config.json new file mode 100644 index 00000000..71ec4ed6 --- /dev/null +++ b/apps/halo/config.json @@ -0,0 +1,39 @@ +{ + "$schema": "../schema.json", + "name": "Halo", + "available": true, + "port": 8092, + "id": "halo", + "description": "", + "tipi_version": 1, + "version": "2.4.2", + "categories": ["social", "media"], + "short_desc": "", + "author": "halo-dev", + "source": "https://github.com/halo-dev/halo", + "website": "https://halo.run", + "form_fields": [ + { + "type": "random", + "label": "Database password", + "min": 20, + "env_variable": "HALO_DATABASE_PASSWORD" + }, + { + "type": "text", + "label": "Initial admin username", + "env_variable": "HALO_ADMIN_USERNAME" + }, + { + "type": "random", + "label": "Initial admin password", + "min": 8, + "env_variable": "HALO_ADMIN_PASSWORD" + }, + { + "type": "text", + "label": "External url", + "env_variable": "HALO_EXTERNAL_URL" + } + ] +} diff --git a/apps/halo/docker-compose.yml b/apps/halo/docker-compose.yml new file mode 100644 index 00000000..95831132 --- /dev/null +++ b/apps/halo/docker-compose.yml @@ -0,0 +1,58 @@ +version: "3" + +services: + halo: + image: halohub/halo:2.4.2 + container_name: halo + restart: unless-stopped + depends_on: + halodb: + condition: service_healthy + networks: + - tipi_main_network + volumes: + - ${APP_DATA_DIR}:/root/.halo2 + ports: + - ${APP_PORT}: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:postgresql://halodb/halo + - --spring.r2dbc.username=halo + - --spring.r2dbc.password=${HALO_DATABASE_PASSWORD} + - --spring.sql.init.platform=postgresql + - --halo.external-url=${HALO_EXTERNAL_URL} + - --halo.security.initializer.superadminusername=${HALO_ADMIN_USERNAME} + - --halo.security.initializer.superadminpassword=${HALO_ADMIN_PASSWORD} + labels: + traefik.enable: ${APP_EXPOSED} + traefik.http.routers.halo.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.halo.entrypoints: websecure + traefik.http.routers.halo.service: halo + traefik.http.routers.halo.tls.certresolver: myresolver + traefik.http.services.halo.loadbalancer.server.port: 8090 + + halodb: + image: postgres:latest + container_name: halodb + restart: unless-stopped + networks: + - tipi_main_network + volumes: + - ${APP_DATA_DIR}/db:/var/lib/postgresql/data + ports: + - "5432:5432" + healthcheck: + test: [ "CMD", "pg_isready" ] + interval: 10s + timeout: 5s + retries: 5 + environment: + - POSTGRES_PASSWORD=${HALO_DATABASE_PASSWORD} + - POSTGRES_USER=halo + - POSTGRES_DB=halo + - PGUSER=halo \ No newline at end of file diff --git a/apps/halo/metadata/description.md b/apps/halo/metadata/description.md new file mode 100644 index 00000000..441d362f --- /dev/null +++ b/apps/halo/metadata/description.md @@ -0,0 +1,67 @@ +

+ + Halo logo + +

+ +

Halo [ˈheɪloʊ],强大易用的开源建站工具。

+ +

+GitHub release +Docker pulls +GitHub last commit +GitHub Workflow Status +Codecov percentage +
+官网 +文档 +社区 +Gitee +Telegram 频道 +

+ +------------------------------ + +## 快速开始 + +```bash +docker run \ + -it -d \ + --name halo \ + -p 8090:8090 \ + -v ~/.halo2:/root/.halo2 \ + halohub/halo:2.4 \ + --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/metadata/logo.png b/apps/halo/metadata/logo.png new file mode 100644 index 00000000..d9927458 Binary files /dev/null and b/apps/halo/metadata/logo.png differ