Support docker-compose version 3
See original GitHub issueDescription
I have a docker-compose file in version 3, but when i add it as an external compose file to run, it falis saying only version 2.x is supported. EXAMPLE
<plugin>
<inherited>false</inherited>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.25.2</version>
<extensions>true</extensions>
<configuration>
<images>
<image>
<name>sample-project:latest</name>
<build>
<dockerFileDir>${project.basedir}</dockerFileDir>
<dockerFile>docker/Dockerfile</dockerFile>
<assembly>
<mode>dir</mode>
<descriptorRef>artifact</descriptorRef>
</assembly>
</build>
</image>
<image>
<alias>sample-project-stack</alias>
<name>sample-project:latest</name>
<external>
<type>compose</type>
<basedir>${project.basedir}</basedir>
<composeFile>docker/docker-compose.yml</composeFile>
</external>
<run>
<namingStrategy>alias</namingStrategy>
</run>
</image>
</images>
</configuration>
</plugin>
Info
- d-m-p version : 0.25.2
- Maven version (
mvn -v
) :
❯ mvn -v
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T11:49:05-08:00)
Maven home: /Users/hshah/Applications/apache-maven-3.5.3
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
- Docker version :
docker -v
Docker version 17.09.0-ce, build afdb6d4
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:6
Top Results From Across the Web
Compose file version 3 reference - Docker Documentation
These topics describe version 3 of the Compose file format. ... This table shows which Compose file versions support specific Docker releases.
Read more >Docker Compose v3 – Production Ready - Encora
Docker Compose is one of the most important tools in the Docker toolbox. It was originally used to set up an environment for...
Read more >Should I Upgrade My Docker Compose File Version From 2 to ...
This also requires using version 3 of docker-compose.yml files, as docker stack does not support version 2. The way handling volumes and networks...
Read more >Amazon ECS CLI Supports Docker Compose Version 3
The Amazon Elastic Container Service Command Line Interface (Amazon ECS CLI) now supports the Docker Compose version 3 file format for ...
Read more >Steps to Install Docker - Compose - K21Academy
docker compose version. If the output shows the release downloaded in Step 3, you have successfully installed the package.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t plan to actively work on that. 'happy to help in integrating a PR request for this upgrade though.
However, long-term
docker:run
will be feature-frozen as I would recommend testcontainers.org as the better alternative for integration tests. That way we can focus better on creating images with other technologies like Jib or other daemonless builder tools like Buildah. This is not written in stone, however its probably the direction where d-m-p is heading to.@rhuss Thanks Roland. Works like charm! I was gonna complain about the missing functionality but now I try testcontainers. Greetings from Munich.