Make sure that so container is started only
when db is ready to connect
Change-Id: I6ba1d9df7837f482def82d33b90fe5be52c686dd
Issue-ID: SO-208
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
-version: '2'
+version: '2.1'
networks:
default:
driver: bridge
options:
max-size: "30m"
max-file: "5"
+ healthcheck:
+ test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
+ timeout: 20s
+ retries: 10
mso:
image: openecomp/mso
ports:
hostname:
mso.mso.testlab.openecomp.org
depends_on:
- - mariadb
+ mariadb:
+ condition: service_healthy
logging:
driver: "json-file"
options: