Yeah.Currently this is not supported with Docker Compose.So we are using
sleep for this.

But there is a health check feature listed under next version[1][2].May be
with that version we able to use that to determine if a container is
"alive".

[1]https://github.com/docker/docker/issues/21142
[2]https://github.com/docker/compose/issues/374

Thanks,
Gayan

On Mon, Jul 4, 2016 at 8:17 PM, Lakmal Warusawithana <lak...@wso2.com>
wrote:

> Its only work for container start time , not wait for app start time
> inside the container. We have introduced sleep environment variable in our
> products, if we define sleep in compose, our startup script wait sleep time
> before start the server.
>
>
> On Monday, July 4, 2016, Tharindu Dharmarathna <tharin...@wso2.com> wrote:
>
>> Hi All,
>>
>> Is there any way to wait the start of containers which depends on other
>> container get started successfully.
>>
>> I had tried with [1] . But it didn't get worked as well.
>>
>> [1] - https://docs.docker.com/compose/startup-order/
>>
>> --
>>
>> *Tharindu Dharmarathna*Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <%2B94779109091>*
>>
>
>
> --
> Sent from Gmail Mobile
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to