宝塔安装mysql,并且用docker-compose 安装halo。
` version: "3"
services:
halo:
image: halohub/halo:latest
container_name: halo
restart: on-failure:3
volumes:
- ./:/root/.halo
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8090:8090"
environment:
- SERVER_PORT=8090
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
- SPRING_DATASOURCE_URL=jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=halodb
- SPRING_DATASOURCE_PASSWORD=密码
- HALO_ADMIN_PATH=admin
- HALO_CACHE=memory`
宝塔Mysql 数据库名:halodb 用户名:halodb 密码:自定义
进入mysql修改排序规则为:utf8mb4_bin
是否是这样配置?docker-conpose -d