Update healthcheck commands in docker-compose.yml

This commit is contained in:
swve 2024-02-20 18:26:57 +01:00
parent 8f202b575e
commit 05c520b740

View file

@ -24,7 +24,7 @@ services:
- POSTGRES_PASSWORD=learnhouse
- POSTGRES_DB=learnhouse
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
test: ["CMD-SHELL", "pg_isready -U learnhouse"]
interval: 5s
timeout: 4s
retries: 5
@ -34,7 +34,7 @@ services:
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 4s
retries: 5
@ -45,4 +45,4 @@ services:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=learnhouse
- MONGO_INITDB_ROOT_PASSWORD=learnhous
- MONGO_INITDB_ROOT_PASSWORD=learnhous