docker-compose.yaml方式部署报错,
docker-compose.yaml内容如下:
version: "3"
services:
halo_2:
image: halohub/halo:2.7
container_name: halo2.7
restart: on-failure:3
volumes:
- ./data:/root/.halo2
ports:
- "8091:8091"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8091/actuator/health/readiness"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
command:
- --spring.r2dbc.url=r2dbc:pool:mysql://127.0.0.1:3307/halo2
- --spring.r2dbc.username=root
# MySQL 的密码,请保证与下方 MYSQL_ROOT_PASSWORD 的变量值一致。
- --spring.r2dbc.password=root
- --spring.sql.init.platform=mysql
# 外部访问地址,请根据实际需要修改
- --halo.external-url=https://localhost:8091/
# 初始化的超级管理员用户名
- --halo.security.initializer.superadminusername=admin
# 初始化的超级管理员密码
- --halo.security.initializer.superadminpassword=123456
容器创建成功,使用docker logs -f -t --tail 1000 halo2.7,容器内部jar包启动报错如下:
2023-07-12T17:41:30.290+08:00 ERROR 7 --- [nReconciler-t-1] r.h.a.c.e.reconciler.PluginReconciler : Failed to reconcile plugin: [PluginMigrate]
2023-07-12T09:41:30.291682384Z
2023-07-12T09:41:30.291688442Z run.halo.app.core.extension.reconciler.PluginReconciler$DoNotRetryException: Plugin PluginMigrate not found in plugin manager.
2023-07-12T09:41:30.291691850Z at run.halo.app.core.extension.reconciler.PluginReconciler.getPluginWrapper(PluginReconciler.java:370) ~[classes/:2.7.0]
2023-07-12T09:41:30.291695576Z at run.halo.app.core.extension.reconciler.PluginReconciler.lambda$readinessDetection$3(PluginReconciler.java:149) ~[classes/:2.7.0]
2023-07-12T09:41:30.291698633Z at java.base/java.util.Optional.map(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291701436Z at run.halo.app.core.extension.reconciler.PluginReconciler.readinessDetection(PluginReconciler.java:138) ~[classes/:2.7.0]
2023-07-12T09:41:30.291704816Z at run.halo.app.core.extension.reconciler.PluginReconciler.lambda$reconcile$0(PluginReconciler.java:101) ~[classes/:2.7.0]
2023-07-12T09:41:30.291707783Z at java.base/java.util.Optional.map(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291710555Z at run.halo.app.core.extension.reconciler.PluginReconciler.reconcile(PluginReconciler.java:93) ~[classes/:2.7.0]
2023-07-12T09:41:30.291713314Z at run.halo.app.core.extension.reconciler.PluginReconciler.reconcile(PluginReconciler.java:75) ~[classes/:2.7.0]
2023-07-12T09:41:30.291716137Z at run.halo.app.extension.controller.DefaultController$Worker.run(DefaultController.java:163) ~[api-2.7.0.jar:na]
2023-07-12T09:41:30.291719166Z at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291721848Z at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291724554Z at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291727265Z at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291730077Z at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
2023-07-12T09:41:30.291732742Z
2023-07-12T09:41:31.304598345Z 2023-07-12T17:41:31.302+08:00 INFO 7 --- [tor-tcp-epoll-2] org.wltea.analyzer.dic.Dictionary : 加载扩展停止词典:org/wltea/analyzer/dic/stopword.dic
2023-07-12T09:41:31.710654904Z 2023-07-12T17:41:31.709+08:00 INFO 7 --- [ task-1] run.halo.app.search.IndicesInitializer : Initialized post indices. Usage: StopWatch 'PostIndicesWatch': running time = 6712417191 ns; [rebuild] took 6712417191 ns = 100%
2023-07-12T09:41:31.792648689Z 2023-07-12T17:41:31.792+08:00 ERROR 7 --- [nReconciler-t-1] r.h.a.c.e.reconciler.PluginReconciler : Failed to reconcile plugin: [PluginS3ObjectStorage]
2023-07-12T09:41:31.792669258Z
2023-07-12T09:41:31.792682229Z run.halo.app.core.extension.reconciler.PluginReconciler$DoNotRetryException: Plugin PluginS3ObjectStorage not found in plugin manager.