diff --git a/build/docker-compose.common.yml b/build/docker-compose.common.yml index 712161ef41..167c38b31c 100644 --- a/build/docker-compose.common.yml +++ b/build/docker-compose.common.yml @@ -11,6 +11,11 @@ services: MYSQL_PASSWORD: mostest MYSQL_USER: mmuser MYSQL_DATABASE: mattermost_test + healthcheck: + test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] + interval: 5s + timeout: 10s + retries: 3 postgres: image: "postgres:9.4" restart: always @@ -23,6 +28,11 @@ services: command: postgres -c 'config_file=/etc/postgresql/postgresql.conf' volumes: - "./docker/postgres.conf:/etc/postgresql/postgresql.conf" + healthcheck: + test: [ "CMD", "pg_isready", "-h", "localhost" ] + interval: 5s + timeout: 10s + retries: 3 minio: image: "minio/minio:RELEASE.2019-10-11T00-38-09Z" command: "server /data"