wait while starting docker compose not work
See original GitHub issuehi,
i added external tag inorder to start docker compose file. the containers started as expected but the wait section not work.
Can u share some info how to achieve this it
plugin version 0.27.2
maven version 3.3.9
my pom section
<configuration> <images> <image> <alias>data-stream-stack</alias> <name>behalf/data-stream-stack:latest</name> <external> <type>compose</type> <basedir>src/main/docker</basedir> <composeFile>docker-compose.yml</composeFile> </external> <build/> <run> <wait> <!-- Change wait configuration to use healthy element. see http://dmp.fabric8.io/#start-wait --> <http> <url>http://localhost:8083</url> <method>GET</method> <status>200</status> </http> <time>100000</time> </wait> </run> </image> </images> <!--<skip>false</skip>--> </configuration>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
@oligatorr He probably meant <alias> tag which must match with service name in compose file.
I had the same issue and my problem was that the <alias> value didn’t match with a service name in the docker-compose file.