这是我的异常halo服务的日志
[root@iZf8zdllrmbyulqv78msbjZ halo]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86055476e3f2 halohub/halo:2.11 "sh -c 'java ${JVM_O…" 16 seconds ago Up 6 seconds halo
ff0556ca555e mysql:8.1.0 "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp mysql
[root@iZf8zdllrmbyulqv78msbjZ halo]# docker logs halo
__ __ __
/ / / /___ / /__
/ // / __ `/ / __ \
/ __ / // / / // /
// //_,//____/
Version: 2.11.3
2024-01-29T04:23:32.762+08:00 INFO 7 --- [ main] run.halo.app.Application : Starting Application v2.11.3 using Java 17.0.9 with PID 7 (/application/BOOT-INF/classes started by root in /application)
2024-01-29T04:23:32.767+08:00 INFO 7 --- [ main] run.halo.app.Application : No active profile set, falling back to 1 default profile: "default"
2024-01-29T04:23:33.195+08:00 WARN 7 --- [ main] o.s.c.a.AnnotationBeanNameGenerator : Support for convention-based stereotype names is deprecated and will be removed in a future version of the framework. Please annotate the 'value' attribute in @run.halo.app.theme.finders.Finder with @AliasFor(annotation=Component.class) to declare an explicit alias for @Component's 'value' attribute.
2024-01-29T04:23:34.477+08:00 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2024-01-29T04:23:34.479+08:00 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data R2DBC repositories in DEFAULT mode.
2024-01-29T04:23:34.624+08:00 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 134 ms. Found 1 R2DBC repository interface.
这是我的docker-comose.yam文件
version: "3"
services:
halo:
image: halohub/halo:2.11
container_name: halo
restart: on-failure:3
network_mode: "host"
volumes:
- /home/halo/halo2:/root/.halo2
command:
# 修改为自己已有的 MySQL 配置
- --spring.r2dbc.url=r2dbc:pool:mysql://localhost:3306/halo
- --spring.r2dbc.username=root
- --spring.r2dbc.password=XXXX
- --spring.sql.init.platform=mysql
# 外部访问地址,请根据实际需要修改
- --halo.external-url=http://x7.12x.3x.15x:80
# 端口号 默认8090
- --server.port=80
# 缓存
- --halo.cache.page.disabled=false
我想用本地的mysql,每次都是单独用docker部署就没问题,我不想用H2数据库,想换mysql,求大佬帮我看看😵