1

I'm starting to use Docker with Laradock.When I run this command

docker-compose up -d apache2 mysql

I'm getting this errors:

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.proxy.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.proxy2.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.memcached.ports is invalid: Port ranges don't match in length
services.beanstalkd.ports is invalid: Port ranges don't match in length
services.mssql.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.netdata.ports is invalid: Port ranges don't match in length
services.beanstalkd-console.ports is invalid: Port ranges don't match in length
services.zookeeper.ports is invalid: Port ranges don't match in length
services.gitlab.ports is invalid: Port ranges don't match in length
services.workspace.ports is invalid: Port ranges don't match in length
services.maildev.ports is invalid: Port ranges don't match in length
services.mongo.ports is invalid: Port ranges don't match in length

I'm using Mac and already restart docker.What I need to fix?

2
  • The error message indicates that there is an error in your docker-compose.yml file. You need to add the contents of this file to your question if we are to help you :)
    – Daniel
    Mar 20, 2019 at 8:46
  • docker-compose.yml total coding lines1418 and auto generated by Laradock.Thanks :D
    – Amy
    Mar 20, 2019 at 8:49

1 Answer 1

11

just for info for whoever is getting this error using laradock, it happens because the .env file is missing, create a .env file with this content on your docker (laradock) folder:

https://raw.githubusercontent.com/laradock/laradock/master/env-example

1
  • 3
    I had this issue today. I already had a .env file, but for some reason it wasn't being read. 'cp env-example .env' fixed it.
    – Kiksy
    Apr 9, 2019 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.