概述
使用 Docker-Compose 方法部署 Halo 2.0 beta 2 容器。使用命令 docker-compose up
运行后过一段时间会卡住,无明显错误,详见“日志1”(文末)。使用浏览器/CURL访问后会新增报错,无法正常运行。详见“日志2”(文末)。
硬件环境
CPU: 2 Core
RAM: 2 GB
Disk: 80GB
软件环境
系统:Debian Sid
NGINX 1.23.1
Java 17
Docker:
Client: Docker Engine - Community
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
containerd: 1.6.10
runc: 1.1.4
docker-init: 0.19.0
Docker Compose v2.12.2
docker-compose.yaml
version: "3.2"
services:
halo_next:
image: halohub/halo-dev:2.0.0-beta.2
container_name: halo_next
restart: on-failure:3
volumes:
- ./:/root/halo-next
ports:
- "9200:9200"
environment:
- SERVER_PORT=9200
- SPRING_R2DBC_URL=r2dbc:mysql://<REMOVED>:3306/lm_halo?characterEncoding=utf8_mb4&useSSL=false
- SPRING_R2DBC_USERNAME=halo
- SPRING_R2DBC_PASSWORD=<REMOVED>
- HALO_ADMIN_PATH=admin
- HALO_CACHE=memory
# 外部访问地址,请根据实际需要修改
#- HALO_EXTERNAL_URL=http://127.0.0.1:9200/
# 初始化的超级管理员用户名
- HALO_SECURITY_INITIALIZER_SUPERADMINUSERNAME=admin
# 初始化的超级管理员密码
- HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd
日志1
https://pastebin.com/63rHyzGd
日志2
https://pastebin.com/wcARefCn