aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 65da92f..7cf32df 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,4 +1,4 @@
-version: '2'
+version: '2.1'
networks:
default:
driver: bridge
@@ -21,6 +21,10 @@ services:
options:
max-size: "30m"
max-file: "5"
+ healthcheck:
+ test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
+ timeout: 20s
+ retries: 10
mso:
image: openecomp/mso
ports:
@@ -35,7 +39,8 @@ services:
hostname:
mso.mso.testlab.openecomp.org
depends_on:
- - mariadb
+ mariadb:
+ condition: service_healthy
logging:
driver: "json-file"
options: