docker-magento
docker-magento copied to clipboard
Invalid Type in compose.healthcheck.yaml in WSL2
Description To Install Magento we have tried Automated Setup as well as manual setup in both cases we are getting the following error
Steps To Reproduce
- Installed WSL2
- Install docker Version 20.10.21
- Install docker-compose version 1.25.0
- created project directory:
mkdir -p ~/Sites/magento
-
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
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
@markshust please help to resolve the issue.
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.
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.