docker-compose启动halo服务时,拉取halodb 一直失败
docker-compose.yaml:
version: "3"
services:
halo:
image: registry.fit2cloud.com/halo/halo:2.18.0
restart: on-failure:3
depends_on:
halodb:
condition: service_healthy
networks:
halo_network:
volumes:
- ./halo2:/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
- --spring.r2dbc.password=o#DwN&JSa56
- --spring.sql.init.platform=mysql
- --halo.external-url=http://localhost:8090/
halodb:
image: mysql:8.1.0
restart: on-failure:3
networks:
halo_network:
command:
- --default-authentication-plugin=caching_sha2_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
- --explicit_defaults_for_timestamp=true
volumes:
- ./mysql:/var/lib/mysql.0
- ./mysqlBackup:/data/mysqlBackup
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
interval: 3s
retries: 5
start_period: 30s
environment:
- MYSQL_ROOT_PASSWORD=o#DwN&JSa56
- MYSQL_DATABASE=halo
networks:
halo_network:
启动报错:
[+] Running 1/12
⠼ halodb 10 layers [⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀] 0B/0B Pulling 119.3s
⠙ 8e0176adc18c Retrying in 1 second 114.1s
⠙ 14e977b0f4b2 Retrying in 1 second 114.1s
⠙ a7b58dd6f78b Retrying in 1 second 114.1s
⠙ fba70cc872a5 Waiting 114.1s
⠙ 5db2cc6eab8f Waiting 114.1s
⠙ 081f41f573ba Waiting 114.1s
⠙ 86bf2dc4ded9 Waiting 114.1s
⠙ 47f08b0e916e Waiting 114.1s
⠙ 850e29ae8eeb Waiting 114.1s
⠙ 13517fe0d921 Waiting 114.1s
✔ halo Pulled 0.8s
error pulling image configuration: download failed after attempts=6: dial tcp 199.96.62.75:443: connect: connection refused