health_check_enabled ?? true); } /** * Build the Docker Compose healthcheck block for the given probe command. * * @param array $test The Docker `test` array (e.g. ['CMD', 'pg_isready']). * @return array */ public function healthCheckConfiguration(array $test): array { return [ 'test' => $test, 'interval' => ($this->health_check_interval ?? 15).'s', 'timeout' => ($this->health_check_timeout ?? 5).'s', 'retries' => $this->health_check_retries ?? 5, 'start_period' => ($this->health_check_start_period ?? 5).'s', ]; } }