docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Invalid Type in compose.healthcheck.yaml in WSL2

Open Renu05 opened this issue 2 years ago • 3 comments

Description To Install Magento we have tried Automated Setup as well as manual setup in both cases we are getting the following error

MicrosoftTeams-image (67)

MicrosoftTeams-image (68)

Steps To Reproduce

  1. Installed WSL2
  2. Install docker Version 20.10.21
  3. Install docker-compose version 1.25.0
  4. created project directory: mkdir -p ~/Sites/magento
  5. Download the Docker Compose template: curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash In this step, we are getting following error

ERROR: The Compose file './compose.healthcheck.yaml' is invalid because: services.phpfpm.depends_on contains an invalid type, it should be an array services.app.depends_on contains an invalid type, it should be an array Failed to start Docker services

Expected Result It should allow you to install Magento.

Actual Result Getting Error while executing the curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash command

Renu05 avatar Dec 09 '22 07:12 Renu05

Facing same issue with a linux.

docker-compose version 1.25.0 Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1

Screenshot from 2022-12-28 13-41-47

@markshust please help to resolve the issue.

niravGV avatar Dec 28 '22 08:12 niravGV

Hmmm... I think this may have been due to an inline comment on that file. Can you try pulling it down and re-trying?

Note that you'll need to completely remove the project before doing so with bin/removeall, then removing the entire project directory and starting over.

markshust avatar Dec 28 '22 12:12 markshust

I got the same error on linux debian with the last tag #44.0.0, and upgrading docker-compose to the last version (2.17.2) fix it.

janssens avatar Apr 14 '23 08:04 janssens