Skip to content

Commit

Permalink
fix: make the MySQL container healthy by fixing the healthcheck comma…
Browse files Browse the repository at this point in the history
…nd (#90)

* fix: make the MySQL container healthy by fixing the healthcheck command

* fix: update MySQL healthcheck for docker-compose-dev file
  • Loading branch information
fabriceclementz authored May 7, 2022
1 parent e670cb8 commit b256688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 72 deletions.
26 changes: 2 additions & 24 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,7 @@ services:
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-u',
'root',
'--password',
'password',
]
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
Expand All @@ -60,18 +49,7 @@ services:
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-u',
'root',
'--password',
'password',
]
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
Expand Down
26 changes: 2 additions & 24 deletions docker-compose-mysql-minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@ services:
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-u',
'root',
'--password',
'password',
]
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
Expand All @@ -32,18 +21,7 @@ services:
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-u',
'root',
'--password',
'password',
]
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
Expand Down
26 changes: 2 additions & 24 deletions docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@ services:
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-u',
'root',
'--password',
'password',
]
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
Expand All @@ -32,18 +21,7 @@ services:
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-u',
'root',
'--password',
'password',
]
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
Expand Down

0 comments on commit b256688

Please sign in to comment.