apolloconfig / apollo-quick-start

Apollo Quick Start
691 stars 1.85k forks source link

docker部署apollo启动失败,docker-compose.yml有点小问题 #95

Closed frost-2 closed 1 year ago

frost-2 commented 1 year ago

我的docker版本

[root@localhost ~]# docker -v
Docker version 20.10.8, build 3967b7d
[root@localhost ~]# docker-compose -v
docker-compose version 1.14.0-rc2, build 24dae73

启动报错

[root@localhost docker-quickstart]# docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.apollo-db: 'healthcheck'
services.apollo-quick-start.depends_on contains an invalid type, it should be an array

修改

1:删除healthcheck模块 2:depends_on 修改如下

services:
  apollo-quick-start:
    image: nobodyiam/apollo-quick-start
    container_name: apollo-quick-start
    depends_on:
      - apollo-db
    ports:
nobodyiam commented 1 year ago

I updated the docker-compose file version to 2.1, you may try again. If it doesn't work, you may also try to update the docker-compose version.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 21 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.