Skip to content

Commit

Permalink
Update healthcheck command
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Jan 26, 2024
1 parent 84c82b5 commit 5fa841d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
expose:
- 6379
healthcheck:
test: [ "CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "--raw", "incr", "ping" ]
test: redis-cli -a ${REDIS_PASSWORD} ping | grep PONG
interval: 5s
timeout: 5s
retries: 20
Expand All @@ -33,7 +33,7 @@ services:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-u${DB_USERNAME}", "-p${DB_PASSWORD}" ]
test: mysqladmin ping -u${DB_USERNAME} -p${DB_PASSWORD}
interval: 5s
timeout: 5s
retries: 20
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ services:
ports:
- 6379:6379
healthcheck:
test: [ "CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "--raw", "incr", "ping" ]
test: redis-cli -a ${REDIS_PASSWORD} ping | grep PONG
interval: 5s
timeout: 5s
retries: 20
Expand All @@ -86,7 +86,7 @@ services:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-u${DB_USERNAME}", "-p${DB_PASSWORD}" ]
test: mysqladmin ping -u${DB_USERNAME} -p${DB_PASSWORD}
interval: 5s
timeout: 5s
retries: 20

0 comments on commit 5fa841d

Please sign in to comment.