docker-maven-plugin icon indicating copy to clipboard operation
docker-maven-plugin copied to clipboard

Only version 2.X of the docker-compose format

Open brainiac91 opened this issue 3 years ago • 2 comments

I'm trying to parse a compose file that has features from compose version 3.x such as: depends_on: create_database: condition: service_completed_successfully

However. I'm prompted with the following when running "mvn docker:start":

Execution default-cli of goal io.fabric8:docker-maven-plugin:0.40.2:start failed: Only version 2.x of the docker-compose format is supported for C:\path\to\src\main\resources\compose.yaml -> [Help 1]

Is there any workaround for this? Will this be supported in future updates?

  • docker-maven-plugin version : 0.40.2 Docker version 20.10.13 Apache Maven 3.8.5 Java version: 11.0.14.1

brainiac91 avatar Sep 22 '22 09:09 brainiac91

Nope, except when you downgrade to docker-compose version 2. I have no bandwidth to work on a compose 3 update, but let me know if you would like to contribute it to dmp.

rhuss avatar Feb 14 '23 11:02 rhuss

Actually this depends_on syntax has been introduced in compose v2.1, not v3. There is issue #888, so maybe this one here can be closed as a duplicate?

(I suspect the reporter has version: 3.x at the top of their compose file, which triggers the error described above)

poikilotherm avatar Nov 03 '23 15:11 poikilotherm