2
0
mirror of https://github.com/acepanel/templates.git synced 2026-02-04 08:57:16 +08:00

feat: 添加应用程序Halo (#16)

* feat: 添加应用程序Halo

* fix: halo

* fix: halo

---------

Co-authored-by: 耗子 <haozi@loli.email>
This commit is contained in:
董功杭
2026-01-25 22:08:30 +08:00
committed by GitHub
parent 11d251fe46
commit 493b01d46e
3 changed files with 120 additions and 0 deletions

75
halo/data.yml Normal file
View File

@@ -0,0 +1,75 @@
name:
en: Halo
zh_CN: Halo
zh_TW: Halo
categories:
- dev
description:
en: Powerful and easy-to-use open source website builder
zh_CN: 强大易用的开源建站工具
zh_TW: 強大易用的開源建站工具
website: https://www.halo.run/
architectures:
- amd64
- arm64
environments:
HALO_DB_TYPE:
description:
en: Database Type
zh_CN: 数据库类型
zh_TW: 資料庫類型
type: select
default: "mysql"
options:
"MySQL": "mysql"
"PostgreSQL": "postgresql"
"MariaDB": "mariadb"
HALO_DB_HOST:
description:
en: Database Host
zh_CN: 数据库地址
zh_TW: 資料庫地址
type: text
default: 172.18.0.1
HALO_DB_PORT:
description:
en: Database Port
zh_CN: 数据库端口
zh_TW: 資料庫端口
type: port
default: 3306
HALO_DB_NAME:
description:
en: Database Name
zh_CN: 数据库名称
zh_TW: 資料庫名稱
type: port
default: 3306
HALO_DB_USER:
description:
en: Database username
zh_CN: 数据库用户
zh_TW: 資料庫用戶
type: text
default: halo
HALO_DB_PASSWORD:
description:
en: Database password
zh_CN: 数据库密码
zh_TW: 資料庫密碼
type: password
default: halo
HALO_EXTERNAL_URL:
description:
en: External URL
zh_CN: 外部访问地址
zh_TW: 外部訪問地址
type: url
default: http://localhost:8090
HALO_HTTP_PORT:
description:
en: HTTP Port
zh_CN: HTTP 端口
zh_TW: HTTP 端口
type: port
default: 8090

27
halo/docker-compose.yml Normal file
View File

@@ -0,0 +1,27 @@
services:
halo:
image: halohub/halo-pro:2.22.11
restart: unless-stopped
networks:
- acepanel-network
ports:
- ${HALO_HTTP_PORT}:8090
volumes:
- ./data:/root/.halo2
environment:
- JVM_OPTS=
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
command:
- --spring.r2dbc.url=r2dbc:pool:${HALO_DB_TYPE}://${HALO_DB_HOST}:${HALO_DB_PORT}/${HALO_DB_NAME}
- --spring.r2dbc.username=${HALO_DB_USER}
- --spring.r2dbc.password=${HALO_DB_PASSWORD}
- --spring.sql.init.platform=${HALO_DB_TYPE}
- --halo.external-url=${HALO_EXTERNAL_URL}
networks:
acepanel-network:
external: true

18
halo/logo.svg Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="100%" height="100%" viewBox="-105 -15 890 890" version="1.1" xmlns="http://www.w3.org/2000/svg" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g>
<path d="M506.409,822.063c-0,13.815 5.494,27.062 15.271,36.821c9.777,9.76 23.034,15.23 36.848,15.206c18.674,-0.034 39.711,-0.072 58.369,-0.105c28.696,-0.052 51.932,-23.329 51.932,-52.026l0,-769.586c0,-13.798 -5.481,-27.031 -15.238,-36.788c-9.756,-9.757 -22.99,-15.238 -36.788,-15.238l-58.368,-0c-13.798,-0 -27.031,5.481 -36.788,15.238c-9.757,9.757 -15.238,22.99 -15.238,36.788c-0,155.286 -0,614.283 -0,769.69Z" style="fill:url(#_Linear5);fill-rule:nonzero;"/>
<path d="M616.746,322.662c13.813,0 27.061,5.487 36.829,15.255c9.767,9.768 15.254,23.015 15.254,36.829c0,105.185 0,341.877 0,447.062c0,13.814 -5.487,27.061 -15.254,36.829c-9.768,9.767 -23.016,15.255 -36.829,15.255c-18.632,-0 -39.622,-0 -58.254,-0c-13.813,-0 -27.061,-5.488 -36.828,-15.255c-9.768,-9.768 -15.255,-23.015 -15.255,-36.829c-0,-68.223 -0,-187.159 -0,-255.383c-0,-13.813 -5.487,-27.061 -15.255,-36.828c-9.767,-9.768 -23.015,-15.255 -36.828,-15.255c-129.249,-0 -454.326,-0 -454.326,-0l0,-191.68l616.746,0Z" style="fill:#0051b0;fill-rule:nonzero;"/>
<path d="M-0,822.101c0,13.817 5.497,27.067 15.277,36.827c9.781,9.76 23.043,15.229 36.86,15.199c18.675,-0.04 39.713,-0.085 58.368,-0.124c28.69,-0.062 51.916,-23.337 51.916,-52.027c-0,-155.205 -0,-614.509 -0,-769.714c-0,-28.69 -23.226,-51.965 -51.916,-52.026c-18.655,-0.04 -39.693,-0.085 -58.368,-0.125c-13.817,-0.029 -27.079,5.439 -36.86,15.199c-9.78,9.76 -15.277,23.01 -15.277,36.827l-0,769.964Z" style="fill:url(#_Linear6);fill-rule:nonzero;"/>
</g>
<defs>
<linearGradient id="_Linear5" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-3.91885e-13,472.459,-473.895,-3.90698e-13,587.619,-0.861651)">
<stop offset="0" style="stop-color:#0048af;stop-opacity:1"/>
<stop offset="1" style="stop-color:#003580;stop-opacity:1"/>
</linearGradient>
<linearGradient id="_Linear6" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(5.51848e-14,898.506,-901.236,5.50176e-14,162.421,-12.1337)">
<stop offset="0" style="stop-color:#0b89ff;stop-opacity:1"/>
<stop offset="1" style="stop-color:#004eb2;stop-opacity:1"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB