diff --git a/docker-compose.yaml b/docker-compose.yaml index 6c80b32..850ba95 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -91,6 +91,8 @@ services: - ${PWD}/mysql_databases.sql:/docker-entrypoint-initdb.d/01_create_databases.sql networks: - internal + healthcheck: + test: ["CMD-SHELL", "mysqladmin ping -uroot -p$$(DB_ROOT_PW)"] psql14: image: postgres:14-alpine @@ -104,6 +106,8 @@ services: - ${PWD}//postgres_databases.sql:/docker-entrypoint-initdb.d/01_create_databases.sql networks: - internal + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] redis: image: redis:alpine @@ -113,4 +117,6 @@ services: - redis-data:/data networks: - internal + healthcheck: + test: ["CMD-SHELL", "redis-cli ping"]