markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.53k stars 997 forks source link

Invalid Type in compose.healthcheck.yaml in WSL2 #828

Open Renu05 opened 1 year ago

Renu05 commented 1 year ago

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

niravGV commented 1 year ago

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.

markshust commented 1 year ago

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.

janssens commented 1 year ago

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.