环境:
群辉 DSM7.2
1.尝试使用文档的安装方式,安装失败。
2.逐步安装MySQL8 和 halo2 ,卡在了这一步,还没找出原因。求帮助
Caused by: java.net.UnknownHostException: Failed to resolve 'mysql-8' [A(1)] after 2 queries
halo | at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1097) ~[netty-resolver-dns-4.1.101.Final.jar:4.1.101.Final]
halo | ... 36 common frames omitted
version: "3"
services:
halo:
image: halohub/halo:2.11
container_name: halo
restart: on-failure:3
volumes:
- /volume1/docker/halo2:/root/.halo2
ports:
- "8090:8090"
command:
- --spring.r2dbc.url=r2dbc:pool:mysql://mysql-8:3306/halo
- --spring.r2dbc.username=root
# MySQL 的密码,请保证与下方 MYSQL_ROOT_PASSWORD 的变量值一致。
- --spring.r2dbc.password=
- --spring.sql.init.platform=mysql
# 外部访问地址,请根据实际需要修改
- --halo.external-url=http://192.168.31.211:8090/