Docker 安装文档:https://docs.docker.com/engine/install/
Docker Compose 安装文档:https://docs.docker.com/compose/install/
- mkdir ~/halo && cd ~/halo
- touch ~/halo/docker-compose.yaml
- vim docker-compose.yaml
version: "3"
services:
halo:
image: halohub/halo:2.17.0
container_name: halo
restart: on-failure:3
#network_mode: "host"
volumes:
- ./halo2:/root/.halo2
ports:
- "9011:9011"
command:
# 修改为自己已有的 MySQL 配置
- --spring.r2dbc.url=r2dbc:pool:mysql://ip:3306/halo
- --spring.r2dbc.username=xx
- --spring