From 5a3a1df643d2c0a4bac3b4823a14a41e2314f050 Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Mon, 23 Oct 2017 10:32:22 +0200 Subject: user wait-for to control container boot order also added a link between db and so containers Change-Id: I60b2fc862e94eefd4d5f1e2782750953da8be45d Issue-ID: SO-208 Signed-off-by: Sylvain Desbureaux --- docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e5ac8c7..c2c867a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,8 +37,17 @@ services: mso.mso.testlab.openecomp.org depends_on: - mariadb + links: + - mariadb logging: driver: "json-file" options: max-size: "30m" max-file: "5" + command: + - /wait-for.sh + - -t + - "300" + - mariadb:3306 + - -- + - /opt/mso/scripts/start-jboss-server.sh -- cgit 1.2.3-korg