Skip to content

Commit

Permalink
use reasonable health check params (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlesbykumbi authored Mar 7, 2019
1 parent bd3b6d0 commit 699fa81
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ services:
image: postgres:9.6
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 30s
timeout: 10s
interval: 10s
retries: 10
environment:
POSTGRES_PASSWORD: securerootpass
mysql:
image: mysql/mysql-server:5.7
healthcheck:
test: ["CMD-SHELL", "mysql --execute \"SHOW DATABASES\""]
interval: 1s
timeout: 30s
test: ["CMD-SHELL", "mysqladmin ping"]
timeout: 10s
interval: 10s
retries: 10
environment:
MYSQL_ROOT_PASSWORD: securerootpass
MYSQL_DATABASE: mysql
Expand Down

0 comments on commit 699fa81

Please sign in to comment.