add halo
Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
parent
6a8193dd59
commit
5d53e5b1cc
39
apps/halo/config.json
Normal file
39
apps/halo/config.json
Normal file
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
58
apps/halo/docker-compose.yml
Normal file
58
apps/halo/docker-compose.yml
Normal file
|
@ -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
|
67
apps/halo/metadata/description.md
Normal file
67
apps/halo/metadata/description.md
Normal file
|
@ -0,0 +1,67 @@
|
|||
<p align="center">
|
||||
<a href="https://halo.run" target="_blank" rel="noopener noreferrer">
|
||||
<img width="100" src="https://halo.run/logo" alt="Halo logo" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center"><b>Halo</b> [ˈheɪloʊ],强大易用的开源建站工具。</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/halo-dev/halo/releases"><img alt="GitHub release" src="https://img.shields.io/github/release/halo-dev/halo.svg?style=flat-square&include_prereleases" /></a>
|
||||
<a href="https://hub.docker.com/r/halohub/halo"><img alt="Docker pulls" src="https://img.shields.io/docker/pulls/halohub/halo?style=flat-square" /></a>
|
||||
<a href="https://github.com/halo-dev/halo/commits"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/halo-dev/halo.svg?style=flat-square" /></a>
|
||||
<a href="https://github.com/halo-dev/halo/actions"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/halo-dev/halo/halo.yaml?branch=main&style=flat-square" /></a>
|
||||
<a href="https://codecov.io/gh/halo-dev/halo"><img alt="Codecov percentage" src="https://img.shields.io/codecov/c/github/halo-dev/halo/main?style=flat-square&token=YsRUg9fall"/></a>
|
||||
<br />
|
||||
<a href="https://halo.run">官网</a>
|
||||
<a href="https://docs.halo.run">文档</a>
|
||||
<a href="https://bbs.halo.run">社区</a>
|
||||
<a href="https://gitee.com/halo-dev">Gitee</a>
|
||||
<a href="https://t.me/halo_dev">Telegram 频道</a>
|
||||
</p>
|
||||
|
||||
------------------------------
|
||||
|
||||
## 快速开始
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
以上仅作为体验使用,详细部署文档请查阅:<https://docs.halo.run/getting-started/install/docker-compose>
|
||||
|
||||
## 在线体验
|
||||
|
||||
- 环境地址:<https://demo.halo.run>
|
||||
- 后台地址:<https://demo.halo.run/console>
|
||||
- 用户名:`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)。
|
||||
|
||||
<a href="https://github.com/halo-dev/halo/graphs/contributors"><img src="https://opencollective.com/halo/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
## 状态
|
||||
|
||||
![Repobeats analytics](https://repobeats.axiom.co/api/embed/ad008b2151c22e7cf734d2688befaa795d593b95.svg "Repobeats analytics image")
|
BIN
apps/halo/metadata/logo.png
Normal file
BIN
apps/halo/metadata/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 423 KiB |
Loading…
Reference in New Issue
Block a user