XD-DENG commented on a change in pull request #13446:
URL: https://github.com/apache/airflow/pull/13446#discussion_r550985216



##########
File path: scripts/ci/docker-compose/backend-mysql.yml
##########
@@ -36,6 +38,12 @@ services:
       - ../mysql/conf.d:/etc/mysql/conf.d:ro
       - /dev/urandom:/dev/random   # Required to get non-blocking entropy 
source
       - mysql-db-volume:/var/lib/mysql
+    healthcheck:
+      test: ["CMD", "mysql", "-h", "localhost", "-P", "3306", "-u", "root", 
"-e", "SELECT 1"]
+      interval: 10s
+      timeout: 10s
+      retries: 120
+

Review comment:
       Is there any specific reason why `restart: always` is not added for 
`mysql` and `postgres`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to