rock-rabbit 没有写错
version: "3"
services:
halo:
image: halohub/halo:2.8
container_name: halo
restart: on-failure:3
networks:
halo:
depends_on:
halodb:
condition: service_healthy
volumes:
- ./:/root/.halo2
ports:
- "8090:8090"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
command:
- --spring.r2dbc.url=r2dbc:pool:mysql://halodb:3306/halo
- --spring.r2dbc.username=root
MySQL .............................. MYSQL_ROOT_PASSWORD .....................
- --spring.r2dbc.password=1234