Skip to content

Commit a5f9714

Browse files
j5ik2oclaude
andcommitted
fix(e2e): MySQL 9.x向けにヘルスチェックを修正
mysql:9.6でMYSQL_PWD方式が非推奨となりヘルスチェックが失敗していた。 mysqladmin pingに変更し、start_periodを追加してMySQL起動完了を待つ。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7201490 commit a5f9714

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/docker-compose/docker-compose-databases.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ services:
55
hostname: mysql-local
66
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --ngram_token_size=2
77
healthcheck:
8-
test: MYSQL_PWD=passwd mysql -h127.0.0.1 -P3306 -uroot -e "quit"
8+
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-ppasswd"]
9+
interval: 10s
10+
timeout: 5s
11+
retries: 10
12+
start_period: 30s
913
ports:
1014
- 33306:3306
1115
environment:

0 commit comments

Comments
 (0)