Add healthcheck to docker-compose databases to easier debug (#15735)

* Waiting for postgres to startup before tests

* Add healthcheck

* Test postgres default

* Prefer pgisready command

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Elisabeth Kulzer
2020-10-02 12:32:23 +02:00
коммит произвёл GitHub
родитель b8ceb610e6
Коммит 14fe307436

Просмотреть файл

@@ -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"