fabric8io / docker-maven-plugin

Maven plugin for running and creating Docker images
https://dmp.fabric8.io
Apache License 2.0
1.88k stars 643 forks source link

Only version 2.X of the docker-compose format #1606

Open brainiac91 opened 2 years ago

brainiac91 commented 2 years ago

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?

rhuss commented 1 year ago

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.

poikilotherm commented 1 year ago

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)