Closed AndreMaz closed 5 years ago
Steps to reproduce
@AndreMaz Now I’ll see what can be a mistake, I checked it several times before accepting @icebob.
@AndreMaz sorry, I don’t understand how I didn’t encounter a syntactic error during the check :( Check again, now you will not have an error with the network array.
Сompletely remove the network will be the wrong decision in terms of the architecture of the docker. I understand that this is the basic environment and is intended for tests, but in practice it will all be used in production, where the standard Docker's overlay network will lower the throughput and there will be some security aspects in relation to other containers.
Hey @intech. Thanks for quick answer and your help. Still, something isn't right. Now I'm getting this:
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
Sorry. I've tested on Linux machine (LTS 18.04) that had old versions docker-compose version 1.17.1
and docker version 17.05.0-ce
... It seems that version: "3.7"
of docker-compose is not supported. Max supported version is version: "3.5"
.
Do you think that it's best to change to 3.5 to avoid any potential problems like I've had?
Update: After updating to Docker version 19.03.1
and docker-compose version 1.24.1
things are working with version: "3.7"
. However, I think that we should go with 3.5 or lower for compatibility reasons
@AndreMaz change version on 3.2 this minimal my recommendation, it's works on docker engine version 17.04.0+
Thanks for your expertise @intech
Hey @intech . It seems that PR https://github.com/moleculerjs/moleculer-template-project/pull/5 has a slight problem in
docker-compose.yml
. For some reason it generates entries like this:Current:
Running
npm run dc:up
produces the following error:To get things working again I had to remove all references about
network
Can you please fix it?