question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wait while starting docker compose not work

See original GitHub issue

hi,

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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
kkurczewskicommented, Dec 27, 2018

@oligatorr He probably meant <alias> tag which must match with service name in compose file.

1reaction
rcaballeroncommented, Dec 11, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Compose wait for container X before starting Y
I like this solution for this case, but it doesn't work for containers that don't exit when one of the subprocesses that it...
Read more >
Control startup and shutdown order in Compose
However, for startup Compose does not wait until a container is “ready” (whatever that means for your particular application) - only until it's...
Read more >
Docker Compose Wait for Container using Wait Tool - Datanovia
The docker-compose-wait tool is a small command line utility to wait for other docker images to be started while using docker-compose. It permits...
Read more >
Docker-compose wait X seconds - Reddit
Everything works but the video app won't work initially when the docker-compose start up because the vpn isn't connected yet.
Read more >
Wait-for-it + Docker Compose - Medium
Wait -for-it helps overcome limitations with depends_on in docker-compose by staggering various docker container runs. ... In most cases you will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found