Add healthchecks for different containers.
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user