docker-compose配置文件内容:
`version: "3"
services:
halo:
image: halohub/halo:2.1.0
container_name: halodw
restart: on-failure:3
volumes:
- ./:/root/.halo2
ports:
- "8082:8082"
network_mode: host
environment:
- SPRING_R2DBC_URL=r2dbc:pool:mysql://localhost:3306/halodw
- SPRING_R2DBC_USERNAME=root
MySQL 的密码,请保证与下方 MYSQL_ROOT_PASSWORD 的变量值一致。
- SPRING_R2DBC_PASSWORD=lql@199405
- SPRING_SQL_INIT_PLATFORM=mysql
外部访问地址,请根据实际需要修改
- HALO_EXTERNAL_URL=https://dw.lql.icu/
初始化的超级管理员用户名
- HALO_SECURITY_INITIALIZER_SUPERADMINUSERNAME=admin
初始化的超级管理员密码
- HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=lql@199405`
报错信息为端口占用:
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
halodw | 2023-01-08T03:11:26.471+08:00 ERROR 7 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
halodw |
halodw | ***************************
halodw | APPLICATION FAILED TO START
halodw | ***************************
halodw |
halodw | Description:
halodw |
halodw | Web server failed to start. Port 8090 was already in use.
halodw |
halodw | Action:
halodw |
halodw | Identify and stop the process that's listening on port 8090 or configure this application to listen on another port.
halodw |
端口我也改了,是工作目录的问题吗?该怎么改?